test: tighten matrix direct account data assertion · openclaw/openclaw@dbb6160
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 |
|---|
@@ -245,12 +245,9 @@ describe("createDirectRoomTracker", () => {
|
245 | 245 | }), |
246 | 246 | ).resolves.toBe(true); |
247 | 247 | |
248 | | -expect(client.setAccountData).toHaveBeenCalledWith( |
249 | | -EventType.Direct, |
250 | | -expect.objectContaining({ |
251 | | -"@alice:example.org": ["!room:example.org"], |
252 | | -}), |
253 | | -); |
| 248 | +expect(client.setAccountData).toHaveBeenCalledWith(EventType.Direct, { |
| 249 | +"@alice:example.org": ["!room:example.org"], |
| 250 | +}); |
254 | 251 | }); |
255 | 252 | |
256 | 253 | it("keeps recent invite candidates across room invalidation", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。