☕️ Classic, reliable, trusted test framework for Node.js and the browser
Added Suite#bail setter/getter function.
Guillermo Rauchd45c58f26136
diff --git a/lib/suite.js b/lib/suite.jsindex acb72b0f..bd3cc706 100644--- a/lib/suite.js+++ b/lib/suite.js@@ -91,6 +91,21 @@ Suite.prototype.timeout = function(ms){return this;};+/**+ * Sets whether to bail after first error.+ *+ * @parma {Boolean} bail+ * @return {Suite|Number} for chaining+ * @api private+ */++Suite.prototype.bail = function(bail){+ if (0 == arguments.length) return this._bail;+ debug('bail %s', bail);+ this._bail = bail;+ return this;+};+/*** Run `fn(test[, done])` before running tests.*