Skip to content

Commit

Permalink
Fix typo (#5834)
Browse files Browse the repository at this point in the history
  • Loading branch information
raresraf authored May 25, 2020
1 parent 1c4a966 commit aef9f22
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions std/node/_fs/_fs_copy_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ const destFile = "./destination.txt";
test({
name: "[std/node/fs] copy file",
fn: async () => {
const srouceFile = Deno.makeTempFileSync();
const sourceFile = Deno.makeTempFileSync();
const err = await new Promise((resolve) => {
copyFile(srouceFile, destFile, (err?: Error | null) => resolve(err));
copyFile(sourceFile, destFile, (err?: Error | null) => resolve(err));
});
assert(!err);
assert(existsSync(destFile));
Deno.removeSync(srouceFile);
Deno.removeSync(sourceFile);
Deno.removeSync(destFile);
},
});

test({
name: "[std/node/fs] copy file sync",
fn: () => {
const srouceFile = Deno.makeTempFileSync();
copyFileSync(srouceFile, destFile);
const sourceFile = Deno.makeTempFileSync();
copyFileSync(sourceFile, destFile);
assert(existsSync(destFile));
Deno.removeSync(srouceFile);
Deno.removeSync(sourceFile);
Deno.removeSync(destFile);
},
});

0 comments on commit aef9f22

Please sign in to comment.