test: tighten matrix reaction event assertion · openclaw/openclaw@9a894e4
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 |
|---|
@@ -170,9 +170,10 @@ describe("matrix approval reactions", () => {
|
170 | 170 | expect(resolveMatrixApproval).not.toHaveBeenCalled(); |
171 | 171 | expect(core.system.enqueueSystemEvent).toHaveBeenCalledWith( |
172 | 172 | "Matrix reaction added: 👍 by Owner on msg $msg-1", |
173 | | -expect.objectContaining({ |
| 173 | +{ |
| 174 | +sessionKey: "agent:main:matrix:channel:!ops:example.org", |
174 | 175 | contextKey: "matrix:reaction:add:!ops:example.org:$msg-1:@owner:example.org:👍", |
175 | | -}), |
| 176 | +}, |
176 | 177 | ); |
177 | 178 | }); |
178 | 179 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。