summaryrefslogtreecommitdiff
path: root/cli/js/symlink_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/symlink_test.ts')
-rw-r--r--cli/js/symlink_test.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/js/symlink_test.ts b/cli/js/symlink_test.ts
index b25c2e9c7..b89b718b3 100644
--- a/cli/js/symlink_test.ts
+++ b/cli/js/symlink_test.ts
@@ -15,7 +15,6 @@ testPerm({ read: true, write: true }, function symlinkSyncSuccess(): void {
}
if (errOnWindows) {
assertEquals(Deno.build.os, "win");
- assertEquals(errOnWindows.kind, Deno.ErrorKind.Other);
assertEquals(errOnWindows.message, "Not implemented");
} else {
const newNameInfoLStat = Deno.lstatSync(newname);
@@ -32,7 +31,7 @@ test(function symlinkSyncPerm(): void {
} catch (e) {
err = e;
}
- assertEquals(err.kind, Deno.ErrorKind.PermissionDenied);
+ assert(err instanceof Deno.Err.PermissionDenied);
assertEquals(err.name, "PermissionDenied");
});
@@ -69,7 +68,6 @@ testPerm({ read: true, write: true }, async function symlinkSuccess(): Promise<
errOnWindows = e;
}
if (errOnWindows) {
- assertEquals(errOnWindows.kind, Deno.ErrorKind.Other);
assertEquals(errOnWindows.message, "Not implemented");
} else {
const newNameInfoLStat = Deno.lstatSync(newname);