misc: reduce unnecesarry output in cli/js tests (#4182)

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
Yusuke Sakurai 2020-03-03 23:51:07 +09:00 committed by GitHub
parent 3968308886
commit 4dc004f0a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 76 additions and 75 deletions

View file

@ -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");
}