Skip to content

Commit 56a234d

Browse files
committed
Use more visually-distinctive characters on the 'dot' reporter
1 parent 3af1b8a commit 56a234d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/reporters/base.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ exports.colors = {
8080
exports.symbols = {
8181
ok: '✓',
8282
err: '✖',
83-
dot: '․'
83+
dot: '․',
84+
comma: ',',
85+
bang: '!'
8486
};
8587

8688
// With node.js on Windows: use symbols available in terminal default fonts

lib/reporters/dot.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function Dot(runner) {
3333
if (++n % width === 0) {
3434
process.stdout.write('\n ');
3535
}
36-
process.stdout.write(color('pending', Base.symbols.dot));
36+
process.stdout.write(color('pending', Base.symbols.comma));
3737
});
3838

3939
runner.on('pass', function(test) {
@@ -51,7 +51,7 @@ function Dot(runner) {
5151
if (++n % width === 0) {
5252
process.stdout.write('\n ');
5353
}
54-
process.stdout.write(color('fail', Base.symbols.dot));
54+
process.stdout.write(color('fail', Base.symbols.bang));
5555
});
5656

5757
runner.on('end', function() {

0 commit comments

Comments
 (0)