summaryrefslogtreecommitdiff
path: root/cli/js/dir_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-02-21 10:36:13 -0500
committerGitHub <noreply@github.com>2020-02-21 10:36:13 -0500
commitdd8a10948195f231a6a9eb652e3f208813904ad6 (patch)
treef9a4afeb67bbead882c29c2458a5f1f99e2e42db /cli/js/dir_test.ts
parentd9efb8c02a0036d755c35e8e9c88d58bd45a9e2b (diff)
refactor: remove unneeded ErrorKinds (#3936)
Diffstat (limited to 'cli/js/dir_test.ts')
-rw-r--r--cli/js/dir_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/dir_test.ts b/cli/js/dir_test.ts
index 4b03eaedd..f936986aa 100644
--- a/cli/js/dir_test.ts
+++ b/cli/js/dir_test.ts
@@ -29,7 +29,7 @@ testPerm({ write: true }, function dirCwdError(): void {
Deno.cwd();
throw Error("current directory removed, should throw error");
} catch (err) {
- if (err instanceof Deno.DenoError) {
+ if (err instanceof Deno.Err.NotFound) {
console.log(err.name === "NotFound");
} else {
throw Error("raised different exception");
@@ -45,7 +45,7 @@ testPerm({ write: true }, function dirChdirError(): void {
Deno.chdir(path);
throw Error("directory not available, should throw error");
} catch (err) {
- if (err instanceof Deno.DenoError) {
+ if (err instanceof Deno.Err.NotFound) {
console.log(err.name === "NotFound");
} else {
throw Error("raised different exception");