test: fix gateway test type fixtures · openclaw/openclaw@f30235b
openclaw
·
2026-06-01
·
via Recent Commits to openclaw:main
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|
@@ -120,7 +120,6 @@ function createLookUpTableForTest(params: {
|
120 | 120 | pluginIds?: readonly string[]; |
121 | 121 | }): PluginLookUpTable { |
122 | 122 | return { |
123 | | -key: "test", |
124 | 123 | policyHash: "test", |
125 | 124 | index: { |
126 | 125 | version: 1, |
|
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,7 @@ const ensureOpenClawModelsJsonMock = vi.fn<
|
8 | 8 | options?: unknown, |
9 | 9 | ) => Promise<{ agentDir: string; wrote: boolean }> |
10 | 10 | >(async () => ({ agentDir: "/tmp/agent", wrote: false })); |
11 | | -const resolveModelMock = vi.fn(() => ({})); |
| 11 | +const resolveModelMock = vi.fn<(...args: unknown[]) => Record<string, never>>(() => ({})); |
12 | 12 | |
13 | 13 | vi.mock("../agents/agent-scope.js", () => ({ |
14 | 14 | resolveDefaultAgentDir: () => "/tmp/agent", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。