mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
test(daemon): remove duplicate launchd read mock
This commit is contained in:
@@ -249,14 +249,6 @@ vi.mock("node:fs/promises", async () => {
|
||||
unlink: vi.fn(async (p: string) => {
|
||||
state.files.delete(p);
|
||||
}),
|
||||
readFile: vi.fn(async (p: string) => {
|
||||
const key = p;
|
||||
const data = state.files.get(key);
|
||||
if (data !== undefined) {
|
||||
return data;
|
||||
}
|
||||
throw new Error(`ENOENT: no such file or directory, read '${key}'`);
|
||||
}),
|
||||
writeFile: vi.fn(async (p: string, data: string, opts?: { mode?: number }) => {
|
||||
const key = p;
|
||||
state.files.set(key, data);
|
||||
|
||||
Reference in New Issue
Block a user