summaryrefslogtreecommitdiff
path: root/cli/tests/unit/real_path_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/real_path_test.ts')
-rw-r--r--cli/tests/unit/real_path_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/unit/real_path_test.ts b/cli/tests/unit/real_path_test.ts
index 8c0728ca9..542d06996 100644
--- a/cli/tests/unit/real_path_test.ts
+++ b/cli/tests/unit/real_path_test.ts
@@ -3,8 +3,8 @@ import {
assert,
assertEquals,
assertMatch,
+ assertRejects,
assertThrows,
- assertThrowsAsync,
pathToAbsoluteFileUrl,
unitTest,
} from "./test_util.ts";
@@ -103,13 +103,13 @@ unitTest(
);
unitTest({ perms: { read: false } }, async function realPathPerm() {
- await assertThrowsAsync(async () => {
+ await assertRejects(async () => {
await Deno.realPath("some_file");
}, Deno.errors.PermissionDenied);
});
unitTest({ perms: { read: true } }, async function realPathNotFound() {
- await assertThrowsAsync(async () => {
+ await assertRejects(async () => {
await Deno.realPath("bad_filename");
}, Deno.errors.NotFound);
});