From 5388428c66a9533d88eb685dcaab4b0a4e1dcc60 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 12 May 2026 03:22:12 +0100 Subject: [PATCH] test: guard echo transcript mock call --- src/media-understanding/apply.echo-transcript.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media-understanding/apply.echo-transcript.test.ts b/src/media-understanding/apply.echo-transcript.test.ts index 1f2747a5898..3afe5cb6bc9 100644 --- a/src/media-understanding/apply.echo-transcript.test.ts +++ b/src/media-understanding/apply.echo-transcript.test.ts @@ -113,7 +113,7 @@ function disableImageUnderstanding(cfg: OpenClawConfig): void { function expectSingleEchoDeliveryCall() { expect(mockDeliverOutboundPayloads).toHaveBeenCalledOnce(); - const firstCall = mockDeliverOutboundPayloads.mock.calls[0]; + const firstCall = mockDeliverOutboundPayloads.mock.calls.at(0); if (!firstCall) { throw new Error("Expected echo transcript delivery call"); }