Skip to content

armgit / mocha

Public Imported from GitHub
0

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

rm redundant var

zhiyeleef80ac0c85ba9
diff --git a/lib/interfaces/tdd.js b/lib/interfaces/tdd.js
index ce43cd28..f2593f94 100644
--- a/lib/interfaces/tdd.js
+++ b/lib/interfaces/tdd.js
@@ -113,7 +113,7 @@ module.exports = function(suite){
context.test = function(title, fn){
var suite = suites[0];
- if (suite.pending) var fn = null;
+ if (suite.pending) fn = null;
var test = new Test(title, fn);
test.file = file;
suite.addTest(test);