test: guard commitment telegram send mock call

This commit is contained in:
Peter Steinberger
2026-05-12 02:53:45 +01:00
parent 17b9f7a8e0
commit bdb5bd0ffb

View File

@@ -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");
}