From 79174f3fb8ce06b5f0452827f94beefaa22b9ef5 Mon Sep 17 00:00:00 2001 From: raresraf Date: Mon, 25 May 2020 10:46:23 +0300 Subject: [PATCH] Fix typo sourceFile --- std/node/_fs/_fs_copy_test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/std/node/_fs/_fs_copy_test.ts b/std/node/_fs/_fs_copy_test.ts index 9a27f7a83fe66a..f7ce0e279ec5b6 100644 --- a/std/node/_fs/_fs_copy_test.ts +++ b/std/node/_fs/_fs_copy_test.ts @@ -10,13 +10,13 @@ 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); }, }); @@ -24,10 +24,10 @@ test({ 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); }, });