test: dedupe heartbeat ack mock read · openclaw/openclaw@89a8047
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -462,7 +462,7 @@ describe("runHeartbeatOnce ack handling", () => {
|
462 | 462 | }); |
463 | 463 | |
464 | 464 | expect(sendTelegram).toHaveBeenCalledTimes(1); |
465 | | -const [chatId, text, options] = sendTelegram.mock.calls.at(0) ?? []; |
| 465 | +const [chatId, text, options] = sendTelegram.mock.calls[0] ?? []; |
466 | 466 | expect(chatId).toBe(TELEGRAM_GROUP); |
467 | 467 | expect(text).toBe("Hello from heartbeat"); |
468 | 468 | expect(options?.accountId).toBe(params.expectedAccountId); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。