Skip to content

Commit

Permalink
move growl require into growl function to avoid errors on windows usi…
Browse files Browse the repository at this point in the history
…ng command line mocha
  • Loading branch information
Raynos committed Dec 20, 2011
1 parent ca54edd commit f51c0ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/_mocha
Expand Up @@ -6,7 +6,6 @@

var program = require('commander')
, exec = require('child_process').exec
, notify = require('growl')
, path = require('path')
, mocha = require('../')
, reporters = mocha.reporters
Expand Down Expand Up @@ -241,6 +240,8 @@ function run(suite, fn) {
// enable growl notifications

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

runner.on('end', function(){
var stats = reporter.stats;
if (stats.failures) {
Expand Down

0 comments on commit f51c0ba

Please sign in to comment.