test: dedupe imessage action mock read · openclaw/openclaw@c1700a5
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -203,7 +203,7 @@ describe("imessage message actions", () => {
|
203 | 203 | ).rejects.toThrow(/imsg private API bridge/); |
204 | 204 | |
205 | 205 | expect(loggerMock.warn).toHaveBeenCalledTimes(1); |
206 | | -const warnArg = String(loggerMock.warn.mock.calls.at(0)?.[0]); |
| 206 | +const warnArg = String(loggerMock.warn.mock.calls[0]?.[0]); |
207 | 207 | expect(warnArg).toMatch(/iMessage react blocked: private API bridge unavailable/); |
208 | 208 | expect(warnArg).toMatch(/imsg launch/); |
209 | 209 | expect(runtimeMock.sendReaction).not.toHaveBeenCalled(); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。