diff options
Diffstat (limited to 'cli/tests/unit/dir_test.ts')
-rw-r--r-- | cli/tests/unit/dir_test.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cli/tests/unit/dir_test.ts b/cli/tests/unit/dir_test.ts index fdcab5ddf..bcddb744a 100644 --- a/cli/tests/unit/dir_test.ts +++ b/cli/tests/unit/dir_test.ts @@ -52,8 +52,12 @@ unitTest( { permissions: { read: true, write: true } }, function dirChdirError() { const path = Deno.makeTempDirSync() + "test"; - assertThrows(() => { - Deno.chdir(path); - }, Deno.errors.NotFound); + assertThrows( + () => { + Deno.chdir(path); + }, + Deno.errors.NotFound, + `chdir '${path}'`, + ); }, ); |