summaryrefslogtreecommitdiff
path: root/std/node/process_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 /std/node/process_test.ts
parentd9efb8c02a0036d755c35e8e9c88d58bd45a9e2b (diff)
refactor: remove unneeded ErrorKinds (#3936)
Diffstat (limited to 'std/node/process_test.ts')
-rw-r--r--std/node/process_test.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/std/node/process_test.ts b/std/node/process_test.ts
index 51dbcd630..545b6ce23 100644
--- a/std/node/process_test.ts
+++ b/std/node/process_test.ts
@@ -24,13 +24,11 @@ test({
() => {
process.chdir("non-existent-directory-name");
},
- Deno.DenoError,
+ Deno.Err.NotFound,
"file"
// On every OS Deno returns: "No such file" except for Windows, where it's:
// "The system cannot find the file specified. (os error 2)" so "file" is
// the only common string here.
- // TODO(rsp): Crazy idea: 404 for things like this?
- // It would be nice to have error codes like 404 or 403 in addition to strings.
);
}
});