☕️ Classic, reliable, trusted test framework for Node.js and the browser
fix .bail() arity check causing it to default to true
TJ Holowaychukefd82246db21
diff --git a/lib/mocha.js b/lib/mocha.jsindex d4f84be7..8ce9e571 100644--- a/lib/mocha.js+++ b/lib/mocha.js@@ -82,7 +82,7 @@ function Mocha(options) {*/Mocha.prototype.bail = function(bail){- if (null == bail) bail = true;+ if (0 == arguments.length) bail = true;this.suite.bail(bail);return this;};