Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Use more visually-distinctive characters on the 'dot' reporter

ELLIOTTCABLE1ab7d084fd10
diff --git a/lib/reporters/base.js b/lib/reporters/base.js
index 4c9e8064..c754c523 100644
--- a/lib/reporters/base.js
+++ b/lib/reporters/base.js
@@ -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
diff --git a/lib/reporters/dot.js b/lib/reporters/dot.js
index e905dc68..f8b4b41f 100644
--- a/lib/reporters/dot.js
+++ b/lib/reporters/dot.js
@@ -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() {