From 2e7036e85cc0fbebef0bb54f406906ba235c98ca Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 13 May 2026 06:04:18 +0100 Subject: [PATCH] test: dedupe gateway sessions mock read --- src/gateway/sessions-resolve.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gateway/sessions-resolve.test.ts b/src/gateway/sessions-resolve.test.ts index 238f15c148f..472b6fd5ffa 100644 --- a/src/gateway/sessions-resolve.test.ts +++ b/src/gateway/sessions-resolve.test.ts @@ -118,7 +118,7 @@ describe("resolveSessionKeyFromResolveParams", () => { }); expect(hoisted.updateSessionStoreMock).toHaveBeenCalledTimes(1); - const updateSessionStoreCall = hoisted.updateSessionStoreMock.mock.calls.at(0); + const updateSessionStoreCall = hoisted.updateSessionStoreMock.mock.calls[0]; expect(updateSessionStoreCall?.[0]).toBe(storePath); expect(typeof updateSessionStoreCall?.[1]).toBe("function"); expect(hoisted.listSessionsFromStoreMock).toHaveBeenCalledWith({