mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
test: fix current-main prep blockers (#61582)
Merged via squash.
Prepared head SHA: 49f7b121aa
Reviewed-by: @mbelinky
This commit is contained in:
@@ -200,6 +200,7 @@ vi.mock("../utils/message-channel.js", () => ({
|
||||
const resolveEffectiveModelFallbacksMock = vi.fn().mockReturnValue(undefined);
|
||||
vi.mock("./agent-scope.js", () => ({
|
||||
listAgentIds: () => ["default"],
|
||||
resolveAgentConfig: () => undefined,
|
||||
resolveAgentDir: () => "/tmp/agent",
|
||||
resolveEffectiveModelFallbacks: resolveEffectiveModelFallbacksMock,
|
||||
resolveSessionAgentId: () => "default",
|
||||
|
||||
@@ -236,7 +236,7 @@ describe("registerPreActionHooks", () => {
|
||||
|
||||
expect(ensureConfigReadyMock).toHaveBeenCalledWith({
|
||||
runtime: runtimeMock,
|
||||
commandPath: ["agent"],
|
||||
commandPath: ["agent", "hi"],
|
||||
});
|
||||
expect(ensurePluginRegistryLoadedMock).toHaveBeenCalledWith({ scope: "all" });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user