mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-05 06:22:57 +00:00
test: fix gateway test type fixtures
This commit is contained in:
@@ -120,7 +120,6 @@ function createLookUpTableForTest(params: {
|
||||
pluginIds?: readonly string[];
|
||||
}): PluginLookUpTable {
|
||||
return {
|
||||
key: "test",
|
||||
policyHash: "test",
|
||||
index: {
|
||||
version: 1,
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user