☕️ Classic, reliable, trusted test framework for Node.js and the browser
fix incorrect grouping in conditional as result of linting
Christopher Hiller228dc4758dfe
diff --git a/lib/runner.js b/lib/runner.jsindex bafd8e68..16144c1f 100644--- a/lib/runner.js+++ b/lib/runner.js@@ -229,7 +229,7 @@ Runner.prototype.fail = function (test, err) {++this.failures;test.state = 'failed';- if (!((err instanceof Error || err) && typeof err.message === 'string')) {+ if (!(err instanceof Error || (err && typeof err.message === 'string'))) {err = new Error('the ' + type(err) + ' ' + stringify(err) + ' was thrown, throw an Error :)');}