mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
misc: reduce unnecesarry output in cli/js tests (#4182)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
parent
3968308886
commit
4dc004f0a2
8 changed files with 76 additions and 75 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue