Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Fixed landing reporter whitespace

Tj Holowaychuka032d0d4f712
diff --git a/lib/reporters/landing.js b/lib/reporters/landing.js
index f877590a..b3e19329 100644
--- a/lib/reporters/landing.js
+++ b/lib/reporters/landing.js
@@ -83,7 +83,11 @@ function Landing(runner) {
stream.write('\033[0m');
});
- runner.on('end', self.epilogue.bind(self));
+ runner.on('end', function(){
+ console.log();
+ cursor.show();
+ self.epilogue();
+ });
}
/**