mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
Tests: fix agent runtime drift
This commit is contained in:
@@ -954,7 +954,7 @@ describe("model-selection", () => {
|
||||
|
||||
expect(result).toEqual({
|
||||
provider: "google-vertex",
|
||||
model: "gemini-3.1-flash-lite",
|
||||
model: "gemini-3.1-flash-lite-preview",
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -107,6 +107,12 @@ vi.mock("../auth-profiles.js", () => ({
|
||||
return { version: 1, profiles: {} };
|
||||
}
|
||||
},
|
||||
hasAnyAuthProfileStoreSource: (agentDir?: string) => {
|
||||
if (!agentDir) {
|
||||
return false;
|
||||
}
|
||||
return fsSync.existsSync(path.join(agentDir, "auth-profiles.json"));
|
||||
},
|
||||
listProfilesForProvider: (
|
||||
store: { profiles?: Record<string, { provider?: string }> },
|
||||
provider: string,
|
||||
|
||||
Reference in New Issue
Block a user