Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Fixed Suite#clone() .ctx reference. Closes #262

Tj Holowaychuk84e6a153a8b4
diff --git a/lib/suite.js b/lib/suite.js
index e1e025f4..257b502e 100644
--- a/lib/suite.js
+++ b/lib/suite.js
@@ -74,6 +74,7 @@ Suite.prototype.__proto__ = EventEmitter.prototype;
Suite.prototype.clone = function(){
var suite = new Suite(this.title);
debug('clone');
+ suite.ctx = this.ctx;
suite.timeout(this.timeout());
suite.bail(this.bail());
return suite;