Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Ensured bail value is inherited with addSuite

Guillermo Rauch54aa757e00eb
diff --git a/lib/suite.js b/lib/suite.js
index e8731fde..486bcb6b 100644
--- a/lib/suite.js
+++ b/lib/suite.js
@@ -186,6 +186,7 @@ Suite.prototype.afterEach = function(fn){
Suite.prototype.addSuite = function(suite){
suite.parent = this;
suite.timeout(this.timeout());
+ suite.bail(this.bail());
this.suites.push(suite);
this.emit('suite', suite);
return this;