Skip to content

Commit

Permalink
Remove carriage return before each test line in spec reporter. Served…
Browse files Browse the repository at this point in the history
… no purpose
  • Loading branch information
Munter authored and boneskull committed Aug 1, 2016
1 parent 309b8f2 commit 8741506
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/reporters/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
var Base = require('./base');
var inherits = require('../utils').inherits;
var color = Base.color;
var cursor = Base.cursor;

/**
* Expose `Spec`.
Expand Down Expand Up @@ -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);
});

Expand Down

0 comments on commit 8741506

Please sign in to comment.