Skip to content

Commit

Permalink
Use more visually-distinctive characters on the 'dot' reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
ELLIOTTCABLE authored and boneskull committed Jul 2, 2016
1 parent f8d55f9 commit a8e63d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/reporters/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ exports.colors = {
exports.symbols = {
ok: '✓',
err: '✖',
dot: '․'
dot: '․',
comma: ',',
bang: '!'
};

// With node.js on Windows: use symbols available in terminal default fonts
Expand Down
4 changes: 2 additions & 2 deletions lib/reporters/dot.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Dot(runner) {
if (++n % width === 0) {
process.stdout.write('\n ');
}
process.stdout.write(color('pending', Base.symbols.dot));
process.stdout.write(color('pending', Base.symbols.comma));
});

runner.on('pass', function(test) {
Expand All @@ -51,7 +51,7 @@ function Dot(runner) {
if (++n % width === 0) {
process.stdout.write('\n ');
}
process.stdout.write(color('fail', Base.symbols.dot));
process.stdout.write(color('fail', Base.symbols.bang));
});

runner.on('end', function() {
Expand Down

0 comments on commit a8e63d1

Please sign in to comment.