mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 14:58:26 +00:00
chore: Fix types in tests 41/N.
This commit is contained in:
@@ -26,8 +26,12 @@ vi.mock("../../slack/scopes.js", () => ({
|
||||
}));
|
||||
|
||||
const runtime = {
|
||||
log: (value: string) => logs.push(value),
|
||||
error: (value: string) => errors.push(value),
|
||||
log: (...args: unknown[]) => {
|
||||
logs.push(args.map(String).join(" "));
|
||||
},
|
||||
error: (...args: unknown[]) => {
|
||||
errors.push(args.map(String).join(" "));
|
||||
},
|
||||
exit: (code: number) => {
|
||||
throw new Error(`exit:${code}`);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user