From bdb5bd0ffbe81deee27b30eecfdc6ab0af43e6b2 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 12 May 2026 02:53:45 +0100 Subject: [PATCH] test: guard commitment telegram send mock call --- src/commitments/commitments-full-chain.integration.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commitments/commitments-full-chain.integration.test.ts b/src/commitments/commitments-full-chain.integration.test.ts index d09608500fc..23b0a47eae3 100644 --- a/src/commitments/commitments-full-chain.integration.test.ts +++ b/src/commitments/commitments-full-chain.integration.test.ts @@ -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"); }