From 92c84bbee463b5b520595f4d3071a602c6947ce2 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 13 May 2026 04:29:54 +0100 Subject: [PATCH] test: dedupe acp lifecycle mock reads --- src/acp/persistent-bindings.lifecycle.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/acp/persistent-bindings.lifecycle.test.ts b/src/acp/persistent-bindings.lifecycle.test.ts index 7017975f3a6..dcaccbe44c1 100644 --- a/src/acp/persistent-bindings.lifecycle.test.ts +++ b/src/acp/persistent-bindings.lifecycle.test.ts @@ -99,7 +99,7 @@ function mockReadySession(params: { function expectCloseArgs(): Record { expect(managerMocks.closeSession).toHaveBeenCalledTimes(1); - const call = managerMocks.closeSession.mock.calls.at(0); + const call = managerMocks.closeSession.mock.calls[0]; if (!call) { throw new Error("expected closeSession call"); } @@ -108,7 +108,7 @@ function expectCloseArgs(): Record { function expectInitializeArgs(): Record { expect(managerMocks.initializeSession).toHaveBeenCalledTimes(1); - const call = managerMocks.initializeSession.mock.calls.at(0); + const call = managerMocks.initializeSession.mock.calls[0]; if (!call) { throw new Error("expected initializeSession call"); }