Skip to content

Commit

Permalink
Remove dead growl code in bin/_mocha (fixes #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 9ae6a85 commit f837771
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 @@ -430,26 +430,6 @@ function exit(code) {

process.on('SIGINT', function() { runner.abort(); })

// 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 f837771

Please sign in to comment.