From 836a748d9eb44bb5cdffd25f2794284a11dbe022 Mon Sep 17 00:00:00 2001 From: jkhsjdhjs Date: Mon, 2 Dec 2019 16:00:12 +0100 Subject: [PATCH] test: change boolean check --- test/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.mjs b/test/index.mjs index 9c33aa2..e1d2c04 100644 --- a/test/index.mjs +++ b/test/index.mjs @@ -21,7 +21,7 @@ const tests = [ const testResults = await Promise.all(tests.map(async t => { try { t.result = await t.runTest(); - if(typeof t.result !== "boolean") { + if(t.result !== !!t.result) { t.result = false; console.error("test did not return a boolean: " + t.name); }