test: change boolean check

This commit is contained in:
jkhsjdhjs 2019-12-02 16:00:12 +01:00
parent 4cb934a773
commit 836a748d9e
Signed by: jkhsjdhjs
GPG Key ID: BAC6ADBAB7D576CC

View File

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