Skip to content

Commit

Permalink
Fixed "test end" event for uncaughtExceptions. Closes #61
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 22, 2011
1 parent 4d8a1b1 commit 3556243
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ Runner.prototype.run = function(){
// uncaught exception
process.on('uncaughtException', function(err){
self.fail(self.test, err);
self.emit('test end', self.test);
self.emit('end');
});

Expand Down

0 comments on commit 3556243

Please sign in to comment.