☕️ Classic, reliable, trusted test framework for Node.js and the browser
remove unnessary err.uncaught check
TJ Holowaychuk1f100552e6b1
diff --git a/lib/runner.js b/lib/runner.jsindex 91206a02..73c320a8 100644--- a/lib/runner.js+++ b/lib/runner.js@@ -181,7 +181,8 @@ Runner.prototype.checkGlobals = function(test){Runner.prototype.fail = function(test, err){++this.failures;test.state = 'failed';- if ('string' == typeof err && !err.uncaught) {++ if ('string' == typeof err) {err = new Error('the string "' + err + '" was thrown, throw an Error :)');}