Skip to content

armgit / mocha

Public Imported from GitHub
0

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

refactored min reporter

TJ Holowaychuk8062691a579a
diff --git a/lib/reporters/min.js b/lib/reporters/min.js
index 394a7895..9f3cea1a 100644
--- a/lib/reporters/min.js
+++ b/lib/reporters/min.js
@@ -19,9 +19,6 @@ exports = module.exports = Min;
function Min(runner) {
Base.call(this, runner);
-
- var self = this
- , stats = this.stats;
runner.on('start', function(){
// clear screen
@@ -30,7 +27,7 @@ function Min(runner) {
process.stdout.write('\033[1;3H');
});
- runner.on('end', function(){ self.epilogue(); });
+ runner.on('end', this.epilogue.bind(this));
}
/**