Skip to content

Commit

Permalink
Fixed global leak detection
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 23, 2011
1 parent 4cd3764 commit a97c5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function Runner(suite) {
this.suite = suite;
this.total = suite.total();
this.globals = Object.keys(global).concat(['errno']);
this.on('test end', function(){ self.checkGlobals(); });
this.on('test end', function(test){ self.checkGlobals(test); });
this.grep(/.*/);
}

Expand Down

0 comments on commit a97c5a3

Please sign in to comment.