Skip to content

Commit

Permalink
Remove the spinner when using --watch (fix #806)
Browse files Browse the repository at this point in the history
  • Loading branch information
travisjeffery committed Dec 6, 2013
1 parent b2e1770 commit 0e6dda9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions bin/_mocha
Original file line number Diff line number Diff line change
Expand Up @@ -305,22 +305,12 @@ if (program.watch) {
process.exit();
});

var spinner = 'win32' == process.platform
? ['|','/','-','\\']
: ['◜','◠','◝','◞','◡','◟'];

var frames = spinner.map(function(c) {
return sprintf(' \u001b[96m%s \u001b[90mwatching\u001b[0m', c);
});

var watchFiles = utils.files(cwd);

function loadAndRun() {
try {
mocha.files = files;
mocha.run(function(){
play(frames);
});
mocha.run(function(){});
} catch(e) {
console.log(e.stack);
}
Expand Down

0 comments on commit 0e6dda9

Please sign in to comment.