summaryrefslogtreecommitdiff
path: root/cli/js/chown_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/chown_test.ts')
-rw-r--r--cli/js/chown_test.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/js/chown_test.ts b/cli/js/chown_test.ts
index a1c12860d..61c6b8736 100644
--- a/cli/js/chown_test.ts
+++ b/cli/js/chown_test.ts
@@ -31,7 +31,7 @@ if (Deno.build.os !== "win") {
try {
await Deno.chown(filePath, 1000, 1000);
} catch (e) {
- assert(e instanceof Deno.Err.PermissionDenied);
+ assert(e instanceof Deno.errors.PermissionDenied);
}
});
@@ -44,7 +44,7 @@ if (Deno.build.os !== "win") {
try {
Deno.chownSync(filePath, uid, gid);
} catch (e) {
- assert(e instanceof Deno.Err.NotFound);
+ assert(e instanceof Deno.errors.NotFound);
}
}
);
@@ -58,7 +58,7 @@ if (Deno.build.os !== "win") {
try {
await Deno.chown(filePath, uid, gid);
} catch (e) {
- assert(e instanceof Deno.Err.NotFound);
+ assert(e instanceof Deno.errors.NotFound);
}
}
);
@@ -74,7 +74,7 @@ if (Deno.build.os !== "win") {
// try changing the file's owner to root
Deno.chownSync(filePath, 0, 0);
} catch (e) {
- assert(e instanceof Deno.Err.PermissionDenied);
+ assert(e instanceof Deno.errors.PermissionDenied);
}
Deno.removeSync(dirPath, { recursive: true });
});
@@ -92,7 +92,7 @@ if (Deno.build.os !== "win") {
// try changing the file's owner to root
await Deno.chown(filePath, 0, 0);
} catch (e) {
- assert(e instanceof Deno.Err.PermissionDenied);
+ assert(e instanceof Deno.errors.PermissionDenied);
}
await Deno.remove(dirPath, { recursive: true });
});