summaryrefslogtreecommitdiff
path: root/cli/js/read_link_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/read_link_test.ts')
-rw-r--r--cli/js/read_link_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/js/read_link_test.ts b/cli/js/read_link_test.ts
index 6f028c08d..498b65c0a 100644
--- a/cli/js/read_link_test.ts
+++ b/cli/js/read_link_test.ts
@@ -21,7 +21,7 @@ testPerm({ read: false }, async function readlinkSyncPerm(): Promise<void> {
Deno.readlinkSync("/symlink");
} catch (e) {
caughtError = true;
- assert(e instanceof Deno.Err.PermissionDenied);
+ assert(e instanceof Deno.errors.PermissionDenied);
}
assert(caughtError);
});
@@ -33,7 +33,7 @@ testPerm({ read: true }, function readlinkSyncNotFound(): void {
data = Deno.readlinkSync("bad_filename");
} catch (e) {
caughtError = true;
- assert(e instanceof Deno.Err.NotFound);
+ assert(e instanceof Deno.errors.NotFound);
}
assert(caughtError);
assertEquals(data, undefined);
@@ -61,7 +61,7 @@ testPerm({ read: false }, async function readlinkPerm(): Promise<void> {
await Deno.readlink("/symlink");
} catch (e) {
caughtError = true;
- assert(e instanceof Deno.Err.PermissionDenied);
+ assert(e instanceof Deno.errors.PermissionDenied);
}
assert(caughtError);
});