mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 20:28:29 +00:00
test(agents): dedupe subagent registry test mocks
This commit is contained in:
15
src/agents/subagent-registry.mocks.shared.ts
Normal file
15
src/agents/subagent-registry.mocks.shared.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { vi } from "vitest";
|
||||
|
||||
const noop = () => {};
|
||||
|
||||
vi.mock("../gateway/call.js", () => ({
|
||||
callGateway: vi.fn(async () => ({
|
||||
status: "ok",
|
||||
startedAt: 111,
|
||||
endedAt: 222,
|
||||
})),
|
||||
}));
|
||||
|
||||
vi.mock("../infra/agent-events.js", () => ({
|
||||
onAgentEvent: vi.fn(() => noop),
|
||||
}));
|
||||
Reference in New Issue
Block a user