mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-26 17:32:16 +00:00
test: align cli runtime mocks with output runtime
This commit is contained in:
@@ -139,11 +139,11 @@ vi.mock("../runtime.js", () => ({
|
||||
defaultRuntime: {
|
||||
log: runtimeLog,
|
||||
error: runtimeError,
|
||||
exit: runtimeExit,
|
||||
writeStdout: vi.fn((value: string) =>
|
||||
runtimeLog(value.endsWith("\n") ? value.slice(0, -1) : value),
|
||||
),
|
||||
writeJson: runtimeWriteJson,
|
||||
exit: runtimeExit,
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user