mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
parent
8cfd9968fa
commit
2435a361c6
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue