Skip to content

Commit

Permalink
"Merge pull request #1204 from shaine/patch-1\n\nFix dot reporter out…
Browse files Browse the repository at this point in the history
…put bugs"

* shaine/patch-1:
  Fix dot reporter output bugs
  • Loading branch information
travisjeffery committed Jul 6, 2014
2 parents c5525dc + 2b592a6 commit cee700e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/reporters/dot.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ function Dot(runner) {
var self = this
, stats = this.stats
, width = Base.window.width * .75 | 0
, n = 0;
, n = -1;

runner.on('start', function(){
process.stdout.write('\n ');
});

runner.on('pending', function(test){
if (++n % width == 0) process.stdout.write('\n ');
process.stdout.write(color('pending', Base.symbols.dot));
});

Expand Down Expand Up @@ -59,4 +60,4 @@ function Dot(runner) {
* Inherit from `Base.prototype`.
*/

Dot.prototype.__proto__ = Base.prototype;
Dot.prototype.__proto__ = Base.prototype;

0 comments on commit cee700e

Please sign in to comment.