summaryrefslogtreecommitdiff
path: root/cli/js/dir_test.ts
diff options
context:
space:
mode:
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 6444f35a3..38e80f543 100644
--- a/cli/js/dir_test.ts
+++ b/cli/js/dir_test.ts
@@ -30,7 +30,7 @@ testPerm({ write: true }, function dirCwdError(): void {
throw Error("current directory removed, should throw error");
} catch (err) {
if (err instanceof Deno.errors.NotFound) {
- console.log(err.name === "NotFound");
+ assert(err.name === "NotFound");
} else {
throw Error("raised different exception");
}
@@ -46,7 +46,7 @@ testPerm({ write: true }, function dirChdirError(): void {
throw Error("directory not available, should throw error");
} catch (err) {
if (err instanceof Deno.errors.NotFound) {
- console.log(err.name === "NotFound");
+ assert(err.name === "NotFound");
} else {
throw Error("raised different exception");
}