Skip to content

armgit / mocha

Public Imported from GitHub
0

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

refactor

TJ Holowaychuk4d95a875d8c4
diff --git a/bin/_mocha b/bin/_mocha
index 26213867..669abea0 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -285,10 +285,9 @@ if (program.watch) {
process.exit();
});
- var spinner = ['◜','◠','◝','◞','◡','◟'];
- if ('win32' === process.platform) {
- spinner = ['|','/','-','\\'];
- }
+ var spinner = 'win32' == process.platform
+ ? ['|','/','-','\\']
+ : ['◜','◠','◝','◞','◡','◟'];
var frames = spinner.map(function(c) {
return sprintf(' \u001b[96m%s \u001b[90mwatching\u001b[0m', c);