mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
test(auth): type session update options
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { ModelsAuthLoginFlowOptions } from "../../commands/models/auth.js";
|
||||
import type { SessionEntryUpdateOptions } from "../../config/sessions/session-accessor.js";
|
||||
import type { SessionEntry } from "../../config/sessions/types.js";
|
||||
import type { OpenClawConfig } from "../../config/types.openclaw.js";
|
||||
import { buildBuiltinChatCommands } from "../commands-registry.shared.js";
|
||||
@@ -21,7 +22,7 @@ vi.mock("../../config/sessions/session-accessor.js", async () => {
|
||||
updateSessionEntry: (
|
||||
scope: { storePath?: string; sessionKey: string },
|
||||
update: unknown,
|
||||
options: unknown,
|
||||
options: SessionEntryUpdateOptions,
|
||||
) => updateSessionEntryMock({ ...scope, update, ...options }),
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user