From 24112c97984aaa65dfef543f93d3915d9cb60a9c Mon Sep 17 00:00:00 2001 From: Rares Folea <30867783+raresraf@users.noreply.github.com> Date: Mon, 25 May 2020 16:35:11 +0300 Subject: [PATCH] Fix typo (denoland/deno#5834) --- node/_fs/_fs_copy_test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/node/_fs/_fs_copy_test.ts b/node/_fs/_fs_copy_test.ts index 9a27f7a83fe6..f7ce0e279ec5 100644 --- a/node/_fs/_fs_copy_test.ts +++ b/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); }, });