diff options
Diffstat (limited to 'cli/tests/unit/utime_test.ts')
-rw-r--r-- | cli/tests/unit/utime_test.ts | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/cli/tests/unit/utime_test.ts b/cli/tests/unit/utime_test.ts index 3e73722aa..a46bd7a0c 100644 --- a/cli/tests/unit/utime_test.ts +++ b/cli/tests/unit/utime_test.ts @@ -160,9 +160,13 @@ unitTest( const atime = 1000; const mtime = 50000; - assertThrows(() => { - Deno.utimeSync("/baddir", atime, mtime); - }, Deno.errors.NotFound); + assertThrows( + () => { + Deno.utimeSync("/baddir", atime, mtime); + }, + Deno.errors.NotFound, + "utime '/baddir'", + ); }, ); @@ -271,9 +275,13 @@ unitTest( const atime = 1000; const mtime = 50000; - await assertRejects(async () => { - await Deno.utime("/baddir", atime, mtime); - }, Deno.errors.NotFound); + await assertRejects( + async () => { + await Deno.utime("/baddir", atime, mtime); + }, + Deno.errors.NotFound, + "utime '/baddir'", + ); }, ); |