test: dedupe gateway sessions mock read

This commit is contained in:
Peter Steinberger
2026-05-13 06:04:18 +01:00
parent f9157fcf82
commit 2e7036e85c

View File

@@ -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({