Skip to content

armgit / mocha

Public Imported from GitHub
0

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

typos

Tj Holowaychuk804d5175a59b
diff --git a/lib/interfaces/bdd.js b/lib/interfaces/bdd.js
index 2fd3681a..ab39029f 100644
--- a/lib/interfaces/bdd.js
+++ b/lib/interfaces/bdd.js
@@ -67,7 +67,7 @@ module.exports = function(suite){
*/
context.describe = function(title, fn){
- var suite = suite = new Suite(title);
+ var suite = new Suite(title);
suites[0].addSuite(suite);
suites.unshift(suite);
fn();
diff --git a/lib/interfaces/tdd.js b/lib/interfaces/tdd.js
index af376344..5dfd8bc1 100644
--- a/lib/interfaces/tdd.js
+++ b/lib/interfaces/tdd.js
@@ -51,7 +51,7 @@ module.exports = function(suite){
*/
context.suite = function(title, fn){
- var suite = suite = new Suite(title);
+ var suite = new Suite(title);
suites[0].addSuite(suite);
suites.unshift(suite);
fn();