test: dedupe telegram bot mock call · openclaw/openclaw@d24254e
steipete
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1795,7 +1795,10 @@ describe("createTelegramBot", () => {
|
1795 | 1795 | }); |
1796 | 1796 | |
1797 | 1797 | expect(replySpy).toHaveBeenCalledTimes(1); |
1798 | | -const payload = replySpy.mock.calls[0][0]; |
| 1798 | +const payload = requireRecord( |
| 1799 | +mockArg(replySpy as unknown as MockCallSource, 0, 0, "reply payload"), |
| 1800 | +"reply payload", |
| 1801 | +); |
1799 | 1802 | const [conversationContext] = requireArray( |
1800 | 1803 | payload.UntrustedStructuredContext, |
1801 | 1804 | "structured context", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。