Skip to content

armgit / mocha

Public Imported from GitHub
0

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

remove trailing unicode chars in Base output

TJ Holowaychuk4e3ff5e299cb
diff --git a/lib/reporters/base.js b/lib/reporters/base.js
index fc881c53..24072ebb 100644
--- a/lib/reporters/base.js
+++ b/lib/reporters/base.js
@@ -309,7 +309,7 @@ Base.prototype.epilogue = function(){
}
// pass
- fmt = color('bright pass', ' ' + exports.symbols.ok)
+ fmt = color('bright pass', ' ')
+ color('green', ' %d %s complete')
+ color('light', ' (%s)');
@@ -320,7 +320,7 @@ Base.prototype.epilogue = function(){
// pending
if (stats.pending) {
- fmt = color('pending', ' •')
+ fmt = color('pending', ' ')
+ color('pending', ' %d %s pending');
console.log(fmt, stats.pending, pluralize(stats.pending));