test(configure): fix provider catalog fixture types · openclaw/openclaw@bea7540
steipete
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | | -import type { OpenClawConfig } from "../config/types.js"; |
| 2 | +import type { OpenClawConfig } from "../config/types.openclaw.js"; |
3 | 3 | import type { NormalizedModelCatalogRow } from "../model-catalog/index.js"; |
4 | 4 | import type { RuntimeEnv } from "../runtime.js"; |
5 | 5 | import type { WizardPrompter } from "../wizard/prompts.js"; |
@@ -320,7 +320,7 @@ describe("promptAuthConfig", () => {
|
320 | 320 | }, |
321 | 321 | }, |
322 | 322 | }, |
323 | | -} satisfies OpenClawConfig; |
| 323 | +} as OpenClawConfig; |
324 | 324 | mocks.applyAuthChoice.mockResolvedValue({ config: existingConfig }); |
325 | 325 | mocks.promptModelAllowlist.mockResolvedValue({ models: undefined }); |
326 | 326 | mocks.resolveProviderPluginChoice.mockReturnValue(null); |
@@ -349,7 +349,7 @@ describe("promptAuthConfig", () => {
|
349 | 349 | }, |
350 | 350 | }, |
351 | 351 | }, |
352 | | -} satisfies OpenClawConfig; |
| 352 | +} as OpenClawConfig; |
353 | 353 | mocks.applyAuthChoice.mockResolvedValue({ |
354 | 354 | config: { |
355 | 355 | ...existingConfig, |
@@ -359,9 +359,9 @@ describe("promptAuthConfig", () => {
|
359 | 359 | mocks.loadStaticManifestCatalogRowsForList.mockReturnValueOnce([ |
360 | 360 | { |
361 | 361 | ref: "github-copilot/claude-opus-4.7", |
| 362 | +mergeKey: "github-copilot/claude-opus-4.7", |
362 | 363 | provider: "github-copilot", |
363 | 364 | id: "claude-opus-4.7", |
364 | | -mergeKey: "github-copilot/claude-opus-4.7", |
365 | 365 | name: "Claude Opus 4.7", |
366 | 366 | source: "manifest", |
367 | 367 | input: ["text"], |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。