Skip to content

armgit / mocha

Public Imported from GitHub
0

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

fix styling slightly

Tj Holowaychukf621cb646037
diff --git a/lib/suite.js b/lib/suite.js
index 19f1a973..af2e611f 100644
--- a/lib/suite.js
+++ b/lib/suite.js
@@ -19,10 +19,10 @@ module.exports = Suite;
*/
function Suite(title) {
- this.title = title;
- this.suites = [];
- this.tests = [];
- this.setup = [];
+ this.title = title;
+ this.suites = [];
+ this.tests = [];
+ this.setup = [];
this.tearDown = [];
}
@@ -39,6 +39,7 @@ Suite.prototype.__proto__ = EventEmitter.prototype;
* @return {Suite} for chaining
* @api private
*/
+
Suite.prototype.addSetup = function(setup){
this.setup.push(setup);
return this;
@@ -50,6 +51,7 @@ Suite.prototype.addSetup = function(setup){
* @return {Suite} for chaining
* @api private
*/
+
Suite.prototype.addTearDown = function(tearDown){
this.tearDown.push(tearDown);
return this;