Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Remove carriage return before each test line in spec reporter. Served no purpose

Peter Müller874150654f83
diff --git a/lib/reporters/spec.js b/lib/reporters/spec.js
index 77a73c4f..28993a8f 100644
--- a/lib/reporters/spec.js
+++ b/lib/reporters/spec.js
@@ -5,7 +5,6 @@
var Base = require('./base');
var inherits = require('../utils').inherits;
var color = Base.color;
-var cursor = Base.cursor;
/**
* Expose `Spec`.
@@ -57,20 +56,17 @@ function Spec(runner) {
fmt = indent()
+ color('checkmark', ' ' + Base.symbols.ok)
+ color('pass', ' %s');
- cursor.CR();
console.log(fmt, test.title);
} else {
fmt = indent()
+ color('checkmark', ' ' + Base.symbols.ok)
+ color('pass', ' %s')
+ color(test.speed, ' (%dms)');
- cursor.CR();
console.log(fmt, test.title, test.duration);
}
});
runner.on('fail', function(test) {
- cursor.CR();
console.log(indent() + color('fail', ' %d) %s'), ++n, test.title);
});