mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-29 19:01:44 +00:00
test: align cli runtime mocks with output runtime
This commit is contained in:
@@ -59,7 +59,11 @@ afterEach(() => {
|
||||
|
||||
describe("memory cli", () => {
|
||||
function spyRuntimeLogs() {
|
||||
return vi.spyOn(defaultRuntime, "log").mockImplementation(() => {});
|
||||
const logSpy = vi.spyOn(defaultRuntime, "log").mockImplementation(() => {});
|
||||
vi.spyOn(defaultRuntime, "writeJson").mockImplementation((value: unknown, space = 2) => {
|
||||
logSpy(JSON.stringify(value, null, space));
|
||||
});
|
||||
return logSpy;
|
||||
}
|
||||
|
||||
function spyRuntimeJson() {
|
||||
|
||||
Reference in New Issue
Block a user