Skip to content

armgit / mocha

Public Imported from GitHub
0

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

misc refactoring

Tj Holowaychuk3e469f9cab6d
diff --git a/lib/reporters/landing.js b/lib/reporters/landing.js
index b3e19329..3619c44d 100644
--- a/lib/reporters/landing.js
+++ b/lib/reporters/landing.js
@@ -84,7 +84,6 @@ function Landing(runner) {
});
runner.on('end', function(){
- console.log();
cursor.show();
self.epilogue();
});
diff --git a/lib/reporters/progress.js b/lib/reporters/progress.js
index 2c9e5513..409a514f 100644
--- a/lib/reporters/progress.js
+++ b/lib/reporters/progress.js
@@ -4,6 +4,7 @@
*/
var Base = require('./base')
+ , cursor = Base.cursor
, color = Base.color;
/**
@@ -47,7 +48,7 @@ function Progress(runner, options) {
// tests started
runner.on('start', function(){
console.log();
- Base.cursor.hide();
+ cursor.hide();
});
// tests complete
@@ -70,7 +71,7 @@ function Progress(runner, options) {
// tests are complete, output some stats
// and the failures if any
runner.on('end', function(){
- Base.cursor.show();
+ cursor.show();
self.epilogue();
});
}