diff options
author | Yusuke Sakurai <kerokerokerop@gmail.com> | 2020-03-03 23:51:07 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-03 15:51:07 +0100 |
commit | 4dc004f0a24fdc81026ec03326b9943a95f1a31d (patch) | |
tree | 97a066cee4c56e4242c69cce99e93101a43b4714 /cli/js/dir_test.ts | |
parent | 3968308886dec239a071503bf09352f893e1da83 (diff) |
misc: reduce unnecesarry output in cli/js tests (#4182)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/js/dir_test.ts')
-rw-r--r-- | cli/js/dir_test.ts | 4 |
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"); } |