Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Fixed tdd ui styling

Tj Holowaychuk98f0e50d2663
diff --git a/lib/interfaces/bdd.js b/lib/interfaces/bdd.js
index 0d22fb5e..11135a0e 100644
--- a/lib/interfaces/bdd.js
+++ b/lib/interfaces/bdd.js
@@ -25,12 +25,11 @@ var Suite = require('../suite')
module.exports = function(suite){
var suites = [suite];
-
+
suite.on('pre-require', function(context, file){
-
-
+
/**
- * Do this before each test case.
+ * Execute before each test case.
*/
context.beforeEach = function(fn){
@@ -38,7 +37,7 @@ module.exports = function(suite){
};
/**
- * Do this after each test case.
+ * Execute after each test case.
*/
context.afterEach = function(fn){
diff --git a/lib/interfaces/tdd.js b/lib/interfaces/tdd.js
index 1eab5023..73d6da49 100644
--- a/lib/interfaces/tdd.js
+++ b/lib/interfaces/tdd.js
@@ -27,23 +27,23 @@ module.exports = function(suite){
var suites = [suite];
suite.on('pre-require', function(context, file){
+
/**
- * Defines a setup function to execute before
- * the execution of each test.
+ * Execute before each test case.
*/
context.setup = function(fn){
suites[0].addSetup(fn);
- }
+ };
/**
- * Defines a tearDown function to execute after
- * the execution of each test.
+ * Execute before each test case.
*/
context.tearDown = function(fn){
suites[0].addTearDown(fn);
- }
+ };
+
/**
* Describe a "suite" with the given `title`
* and callback `fn` containing nested suites