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 committed Jul 30, 2016
1 parent 56323e7 commit 4d4390c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/reporters/spec.js
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 4d4390c

Please sign in to comment.