Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Feb 20, 2013
1 parent f8d76bf commit 4d95a87
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bin/_mocha
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4d95a87

Please sign in to comment.