test: assert matrix room config results · openclaw/openclaw@4c63dd9
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/matrix/src/matrix/monitor
| Original file line number | Diff line number | Diff line change |
|---|
@@ -42,7 +42,7 @@ describe("resolveMatrixRoomConfig", () => {
|
42 | 42 | aliases: [], |
43 | 43 | }); |
44 | 44 | expect(result.matchSource).toBe("direct"); |
45 | | -expect(result.config).toMatchObject({ enabled: true }); |
| 45 | +expect(result.config).toEqual({ enabled: true }); |
46 | 46 | }); |
47 | 47 | |
48 | 48 | it('returns matchSource="direct" for alias match', () => { |
@@ -52,7 +52,7 @@ describe("resolveMatrixRoomConfig", () => {
|
52 | 52 | aliases: ["#alias:example.org"], |
53 | 53 | }); |
54 | 54 | expect(result.matchSource).toBe("direct"); |
55 | | -expect(result.config).toMatchObject({ enabled: true }); |
| 55 | +expect(result.config).toEqual({ enabled: true }); |
56 | 56 | }); |
57 | 57 | |
58 | 58 | it('returns matchSource="wildcard" for wildcard match', () => { |
@@ -62,7 +62,7 @@ describe("resolveMatrixRoomConfig", () => {
|
62 | 62 | aliases: [], |
63 | 63 | }); |
64 | 64 | expect(result.matchSource).toBe("wildcard"); |
65 | | -expect(result.config).toMatchObject({ enabled: true }); |
| 65 | +expect(result.config).toEqual({ enabled: true }); |
66 | 66 | }); |
67 | 67 | |
68 | 68 | it("returns undefined matchSource when no match", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。