diff options
Diffstat (limited to 'cli/tests/unit/copy_file_test.ts')
-rw-r--r-- | cli/tests/unit/copy_file_test.ts | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/cli/tests/unit/copy_file_test.ts b/cli/tests/unit/copy_file_test.ts index cc2699bd3..f232efba8 100644 --- a/cli/tests/unit/copy_file_test.ts +++ b/cli/tests/unit/copy_file_test.ts @@ -72,9 +72,13 @@ unitTest( const fromFilename = tempDir + "/from.txt"; const toFilename = tempDir + "/to.txt"; // We skip initial writing here, from.txt does not exist - assertThrows(() => { - Deno.copyFileSync(fromFilename, toFilename); - }, Deno.errors.NotFound); + assertThrows( + () => { + Deno.copyFileSync(fromFilename, toFilename); + }, + Deno.errors.NotFound, + `copy '${fromFilename}' -> '${toFilename}'`, + ); Deno.removeSync(tempDir, { recursive: true }); }, @@ -162,9 +166,13 @@ unitTest( const fromFilename = tempDir + "/from.txt"; const toFilename = tempDir + "/to.txt"; // We skip initial writing here, from.txt does not exist - await assertRejects(async () => { - await Deno.copyFile(fromFilename, toFilename); - }, Deno.errors.NotFound); + await assertRejects( + async () => { + await Deno.copyFile(fromFilename, toFilename); + }, + Deno.errors.NotFound, + `copy '${fromFilename}' -> '${toFilename}'`, + ); Deno.removeSync(tempDir, { recursive: true }); }, |