summaryrefslogtreecommitdiff
path: root/cli/tests/unit/utime_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/utime_test.ts')
-rw-r--r--cli/tests/unit/utime_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/unit/utime_test.ts b/cli/tests/unit/utime_test.ts
index f5647d220..d5f3fd464 100644
--- a/cli/tests/unit/utime_test.ts
+++ b/cli/tests/unit/utime_test.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
import {
assertEquals,
+ assertRejects,
assertThrows,
- assertThrowsAsync,
pathToAbsoluteFileUrl,
unitTest,
} from "./test_util.ts";
@@ -271,7 +271,7 @@ unitTest(
const atime = 1000;
const mtime = 50000;
- await assertThrowsAsync(async () => {
+ await assertRejects(async () => {
await Deno.utime("/baddir", atime, mtime);
}, Deno.errors.NotFound);
},
@@ -283,7 +283,7 @@ unitTest(
const atime = 1000;
const mtime = 50000;
- await assertThrowsAsync(async () => {
+ await assertRejects(async () => {
await Deno.utime("/some_dir", atime, mtime);
}, Deno.errors.PermissionDenied);
},