mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:51:36 +00:00
chore: Fix types in tests 15/N.
This commit is contained in:
@@ -22,7 +22,7 @@ import { parseTimeoutMs } from "../nodes-run.js";
|
||||
const callGatewaySpy = vi.fn(async () => ({ decision: "allow-once" }));
|
||||
|
||||
vi.mock("../../gateway/call.js", () => ({
|
||||
callGateway: (...args: unknown[]) => callGatewaySpy(...args),
|
||||
callGateway: callGatewaySpy,
|
||||
randomIdempotencyKey: () => "mock-key",
|
||||
}));
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
const messageCommandMock = vi.fn(async () => {});
|
||||
vi.mock("../../../commands/message.js", () => ({
|
||||
messageCommand: (...args: unknown[]) => messageCommandMock(...args),
|
||||
messageCommand: messageCommandMock,
|
||||
}));
|
||||
|
||||
vi.mock("../../../globals.js", () => ({
|
||||
@@ -33,7 +33,7 @@ const runGlobalGatewayStopSafelyMock = vi.fn(
|
||||
},
|
||||
);
|
||||
vi.mock("../../../plugins/hook-runner-global.js", () => ({
|
||||
runGlobalGatewayStopSafely: (...args: unknown[]) => runGlobalGatewayStopSafelyMock(...args),
|
||||
runGlobalGatewayStopSafely: runGlobalGatewayStopSafelyMock,
|
||||
}));
|
||||
|
||||
const exitMock = vi.fn((): never => {
|
||||
|
||||
Reference in New Issue
Block a user