test: guard echo transcript mock call

This commit is contained in:
Peter Steinberger
2026-05-12 03:22:12 +01:00
parent 1a1b6d8d88
commit 5388428c66

View File

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