mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 20:04:45 +00:00
test: guard commitment telegram send mock call
This commit is contained in:
@@ -160,7 +160,7 @@ describe("commitments full-chain integration", () => {
|
||||
|
||||
expect(result.status).toBe("ran");
|
||||
expect(sendTelegram).toHaveBeenCalledOnce();
|
||||
const sendCall = sendTelegram.mock.calls[0];
|
||||
const sendCall = sendTelegram.mock.calls.at(0);
|
||||
if (!sendCall) {
|
||||
throw new Error("Expected Telegram send call");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user