Skip to content

Commit

Permalink
Remove dead growl code in bin/_mocha (fixes mochajs#2132)
Browse files Browse the repository at this point in the history
The growl functionality lives in core mocha now.
  • Loading branch information
julienw committed Mar 12, 2016
1 parent 3c82bd7 commit eee16b7
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions bin/_mocha
Original file line number Diff line number Diff line change
Expand Up @@ -327,26 +327,6 @@ if (program.watch) {
mocha.files = files;
mocha.run(process.exit);

// enable growl notifications

function growl(runner, reporter) {
var notify = require('growl');

runner.on('end', function(){
var stats = reporter.stats;
if (stats.failures) {
var msg = stats.failures + ' of ' + runner.total + ' tests failed';
notify(msg, { name: 'mocha', title: 'Failed', image: images.fail });
} else {
notify(stats.passes + ' tests passed in ' + stats.duration + 'ms', {
name: 'mocha'
, title: 'Passed'
, image: images.pass
});
}
});
}

/**
* Parse list.
*/
Expand Down

0 comments on commit eee16b7

Please sign in to comment.