mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:40:44 +00:00
test(configure): fix provider catalog fixture types
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../config/types.js";
|
||||
import type { OpenClawConfig } from "../config/types.openclaw.js";
|
||||
import type { NormalizedModelCatalogRow } from "../model-catalog/index.js";
|
||||
import type { RuntimeEnv } from "../runtime.js";
|
||||
import type { WizardPrompter } from "../wizard/prompts.js";
|
||||
@@ -320,7 +320,7 @@ describe("promptAuthConfig", () => {
|
||||
},
|
||||
},
|
||||
},
|
||||
} satisfies OpenClawConfig;
|
||||
} as OpenClawConfig;
|
||||
mocks.applyAuthChoice.mockResolvedValue({ config: existingConfig });
|
||||
mocks.promptModelAllowlist.mockResolvedValue({ models: undefined });
|
||||
mocks.resolveProviderPluginChoice.mockReturnValue(null);
|
||||
@@ -349,7 +349,7 @@ describe("promptAuthConfig", () => {
|
||||
},
|
||||
},
|
||||
},
|
||||
} satisfies OpenClawConfig;
|
||||
} as OpenClawConfig;
|
||||
mocks.applyAuthChoice.mockResolvedValue({
|
||||
config: {
|
||||
...existingConfig,
|
||||
@@ -359,9 +359,9 @@ describe("promptAuthConfig", () => {
|
||||
mocks.loadStaticManifestCatalogRowsForList.mockReturnValueOnce([
|
||||
{
|
||||
ref: "github-copilot/claude-opus-4.7",
|
||||
mergeKey: "github-copilot/claude-opus-4.7",
|
||||
provider: "github-copilot",
|
||||
id: "claude-opus-4.7",
|
||||
mergeKey: "github-copilot/claude-opus-4.7",
|
||||
name: "Claude Opus 4.7",
|
||||
source: "manifest",
|
||||
input: ["text"],
|
||||
|
||||
Reference in New Issue
Block a user