diff options
author | 2023-09-07 21:07:00 -0800 | |
---|---|---|
committer | 2023-09-07 21:07:00 -0800 | |
commit | 822a00c4d508b54f650933a73ca5f4a3af9a7983 (patch) | |
tree | 8c0d1e7ce7e9c230f97bcc17c3169647267b1eec /test/js/node/fs/fs.test.ts | |
parent | f6a621f36a87d54d14e2b2ea81c1bcef4906ae63 (diff) | |
download | bun-822a00c4d508b54f650933a73ca5f4a3af9a7983.tar.gz bun-822a00c4d508b54f650933a73ca5f4a3af9a7983.tar.zst bun-822a00c4d508b54f650933a73ca5f4a3af9a7983.zip |
Fix a couple important bugs (#4560)bun-v1.0.0
Diffstat (limited to 'test/js/node/fs/fs.test.ts')
-rw-r--r-- | test/js/node/fs/fs.test.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/js/node/fs/fs.test.ts b/test/js/node/fs/fs.test.ts index 4cfe93dc9..8ea9522e1 100644 --- a/test/js/node/fs/fs.test.ts +++ b/test/js/node/fs/fs.test.ts @@ -2038,6 +2038,12 @@ it("test syscall errno, issue#4198", () => { mkdirSync(path); expect(() => mkdirSync(path)).toThrow("File or folder exists"); - expect(() => unlinkSync(path)).toThrow("Operation not permitted"); + expect(() => unlinkSync(path)).toThrow( + { + ["darwin"]: "Operation not permitted", + ["linux"]: "Is a directory", + // TODO: windows + }[process.platform] as const, + ); rmdirSync(path); }); |