test: dedupe signal reply mock reads · openclaw/openclaw@06e0429
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -140,7 +140,7 @@ describe("monitorSignalProvider tool results", () => {
|
140 | 140 | await vi.waitFor(() => { |
141 | 141 | expect(sendMock).toHaveBeenCalledTimes(1); |
142 | 142 | }); |
143 | | -expect(sendMock.mock.calls.at(0)?.[1]).toBe("PFX final reply"); |
| 143 | +expect(sendMock.mock.calls[0]?.[1]).toBe("PFX final reply"); |
144 | 144 | }); |
145 | 145 | |
146 | 146 | it("replies with pairing code when dmPolicy is pairing and no allowFrom is set", async () => { |
@@ -165,7 +165,7 @@ describe("monitorSignalProvider tool results", () => {
|
165 | 165 | expect(replyMock).not.toHaveBeenCalled(); |
166 | 166 | expect(upsertPairingRequestMock).toHaveBeenCalled(); |
167 | 167 | expect(sendMock).toHaveBeenCalledTimes(1); |
168 | | -expectPairingReplyText(String(sendMock.mock.calls.at(0)?.[1] ?? ""), { |
| 168 | +expectPairingReplyText(String(sendMock.mock.calls[0]?.[1] ?? ""), { |
169 | 169 | channel: "signal", |
170 | 170 | idLine: "Your Signal number: +15550001111", |
171 | 171 | code: "PAIRCODE", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。