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 committed Feb 26, 2016
1 parent 9c41051 commit 4559fae
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
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
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 4559fae

Please sign in to comment.