mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-22 02:44:04 +00:00
test: dedupe gateway sessions mock read
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user