Skip to content

Commit 017252e

Browse files
committed
test(daemon): remove duplicate launchd read mock
1 parent b8b270d commit 017252e

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/daemon/launchd.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,6 @@ vi.mock("node:fs/promises", async () => {
249249
unlink: vi.fn(async (p: string) => {
250250
state.files.delete(p);
251251
}),
252-
readFile: vi.fn(async (p: string) => {
253-
const key = p;
254-
const data = state.files.get(key);
255-
if (data !== undefined) {
256-
return data;
257-
}
258-
throw new Error(`ENOENT: no such file or directory, read '${key}'`);
259-
}),
260252
writeFile: vi.fn(async (p: string, data: string, opts?: { mode?: number }) => {
261253
const key = p;
262254
state.files.set(key, data);

0 commit comments

Comments
 (0)