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
ELLIOTTCABLE committed Dec 9, 2015

Verified

This commit was signed with the committer’s verified signature.
strugee AJ Jordan
1 parent 3af1b8a commit 56a234d
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
@@ -80,7 +80,9 @@ exports.colors = {
exports.symbols = {
ok: '✓',
err: '✖',
dot: '․'
dot: '․',
comma: ',',
bang: '!'
};

// With node.js on Windows: use symbols available in terminal default fonts
4 changes: 2 additions & 2 deletions lib/reporters/dot.js
Original file line number Diff line number Diff line change
@@ -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) {
@@ -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() {

0 comments on commit 56a234d

Please sign in to comment.