Skip to content

Commit

Permalink
fix (reporter.dots): Make reporter only add newline to message when n…
Browse files Browse the repository at this point in the history
…eeded
  • Loading branch information
bitwiseman committed Jan 16, 2013
1 parent 1573e48 commit dbe1155
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/reporters/Dots.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ var DotsReporter = function(formatError, reportSlow) {
};

this.writeCommonMsg = function(msg) {
this.write('\n' + msg);
this._dotsCount = 0;
if (this._dotsCount) {
this._dotsCount = 0;
msg = '\n' + msg;
}

this.write(msg);

};


Expand Down

0 comments on commit dbe1155

Please sign in to comment.