Skip to content

Commit

Permalink
Merge pull request #2153 from julienw/2132-remove-dead-code
Browse files Browse the repository at this point in the history
Remove dead growl code in bin/_mocha (fixes #2132)
  • Loading branch information
danielstjules committed Mar 21, 2016
2 parents 8031f20 + f837771 commit 00d6469
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 00d6469

Please sign in to comment.