From 4dc004f0a24fdc81026ec03326b9943a95f1a31d Mon Sep 17 00:00:00 2001 From: Yusuke Sakurai Date: Tue, 3 Mar 2020 23:51:07 +0900 Subject: misc: reduce unnecesarry output in cli/js tests (#4182) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- cli/js/dir_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/js/dir_test.ts') 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"); } -- cgit v1.2.3