test: fix gateway test type fixtures

This commit is contained in:
Vincent Koc
2026-06-01 12:07:27 +02:00
parent 4f8f6c7693
commit f30235bed2
2 changed files with 1 additions and 2 deletions

View File

@@ -120,7 +120,6 @@ function createLookUpTableForTest(params: {
pluginIds?: readonly string[];
}): PluginLookUpTable {
return {
key: "test",
policyHash: "test",
index: {
version: 1,

View File

@@ -8,7 +8,7 @@ const ensureOpenClawModelsJsonMock = vi.fn<
options?: unknown,
) => Promise<{ agentDir: string; wrote: boolean }>
>(async () => ({ agentDir: "/tmp/agent", wrote: false }));
const resolveModelMock = vi.fn(() => ({}));
const resolveModelMock = vi.fn<(...args: unknown[]) => Record<string, never>>(() => ({}));
vi.mock("../agents/agent-scope.js", () => ({
resolveDefaultAgentDir: () => "/tmp/agent",