mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 20:38:55 +00:00
parent
8cfd9968fa
commit
2435a361c6
@ -223,7 +223,9 @@ Deno.test("[node/fs] copyFile COPYFILE_EXCL works", async () => {
|
||||
await writeFile(src, "");
|
||||
await copyFile(src, dest, fsPromiseConstants.COPYFILE_EXCL);
|
||||
assert(existsSync(dest));
|
||||
assertRejects(() => copyFile(src, dest, fsPromiseConstants.COPYFILE_EXCL));
|
||||
await assertRejects(() =>
|
||||
copyFile(src, dest, fsPromiseConstants.COPYFILE_EXCL)
|
||||
);
|
||||
const dest2 = join(dir, "dest2.txt");
|
||||
copyFileSync(src, dest2, fsPromiseConstants.COPYFILE_EXCL);
|
||||
assert(existsSync(dest2));
|
||||
|
Loading…
Reference in New Issue
Block a user