Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Remove trailing whitespace from reporter output

Daniel St. Jules3901ba422679
diff --git a/lib/reporters/dot.js b/lib/reporters/dot.js
index 3c744576..42a45ee2 100644
--- a/lib/reporters/dot.js
+++ b/lib/reporters/dot.js
@@ -27,7 +27,7 @@ function Dot(runner) {
, n = -1;
runner.on('start', function(){
- process.stdout.write('\n ');
+ process.stdout.write('\n');
});
runner.on('pending', function(test){
diff --git a/lib/reporters/spec.js b/lib/reporters/spec.js
index e74f4ace..3debffe2 100644
--- a/lib/reporters/spec.js
+++ b/lib/reporters/spec.js
@@ -54,14 +54,14 @@ function Spec(runner) {
if ('fast' == test.speed) {
var fmt = indent()
+ color('checkmark', ' ' + Base.symbols.ok)
- + color('pass', ' %s ');
+ + color('pass', ' %s');
cursor.CR();
console.log(fmt, test.title);
} else {
var fmt = indent()
+ color('checkmark', ' ' + Base.symbols.ok)
- + color('pass', ' %s ')
- + color(test.speed, '(%dms)');
+ + color('pass', ' %s')
+ + color(test.speed, ' (%dms)');
cursor.CR();
console.log(fmt, test.title, test.duration);
}