mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
parent
ca6d293b71
commit
c6492f6ac6
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