mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
test(auth): align session update mocks
This commit is contained in:
@@ -444,7 +444,7 @@ describe("handleLoginCommand", () => {
|
||||
};
|
||||
updateSessionStoreEntryMock.mockImplementationOnce(
|
||||
async (params: { update: (entry: SessionEntry) => Partial<SessionEntry> | null }) => {
|
||||
const patch = await params.update({ ...concurrentlySelectedEntry });
|
||||
const patch = params.update({ ...concurrentlySelectedEntry });
|
||||
return patch ? { ...concurrentlySelectedEntry, ...patch } : concurrentlySelectedEntry;
|
||||
},
|
||||
);
|
||||
@@ -482,7 +482,7 @@ describe("handleLoginCommand", () => {
|
||||
};
|
||||
updateSessionStoreEntryMock.mockImplementationOnce(
|
||||
async (params: { update: (entry: SessionEntry) => Partial<SessionEntry> | null }) => {
|
||||
const patch = await params.update({ ...concurrentlySelectedEntry });
|
||||
const patch = params.update({ ...concurrentlySelectedEntry });
|
||||
return patch ? { ...concurrentlySelectedEntry, ...patch } : concurrentlySelectedEntry;
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user