Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Ensure to Suite#clone with `bail` flag.

Guillermo Rauchcf12963e4fe3
diff --git a/lib/suite.js b/lib/suite.js
index bd3cc706..e8731fde 100644
--- a/lib/suite.js
+++ b/lib/suite.js
@@ -72,6 +72,7 @@ Suite.prototype.clone = function(){
var suite = new Suite(this.title);
debug('clone');
suite.timeout(this.timeout());
+ suite.bail(this._bail());
return suite;
};