Skip to content

Commit eee16b7

Browse files
committedMar 12, 2016
Remove dead growl code in bin/_mocha (fixes mochajs#2132)
The growl functionality lives in core mocha now.
1 parent 3c82bd7 commit eee16b7

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed
 

‎bin/_mocha

-20
Original file line numberDiff line numberDiff line change
@@ -327,26 +327,6 @@ if (program.watch) {
327327
mocha.files = files;
328328
mocha.run(process.exit);
329329

330-
// enable growl notifications
331-
332-
function growl(runner, reporter) {
333-
var notify = require('growl');
334-
335-
runner.on('end', function(){
336-
var stats = reporter.stats;
337-
if (stats.failures) {
338-
var msg = stats.failures + ' of ' + runner.total + ' tests failed';
339-
notify(msg, { name: 'mocha', title: 'Failed', image: images.fail });
340-
} else {
341-
notify(stats.passes + ' tests passed in ' + stats.duration + 'ms', {
342-
name: 'mocha'
343-
, title: 'Passed'
344-
, image: images.pass
345-
});
346-
}
347-
});
348-
}
349-
350330
/**
351331
* Parse list.
352332
*/

0 commit comments

Comments
 (0)