☕️ Classic, reliable, trusted test framework for Node.js and the browser
emit end on uncaught
Tj Holowaychuk01dfc96301a5
diff --git a/lib/runner.js b/lib/runner.jsindex 517ed9ad..9ed61736 100644--- a/lib/runner.js+++ b/lib/runner.js@@ -197,6 +197,7 @@ Runner.prototype.run = function(){process.on('uncaughtException', function(err){self.test.failed = true;self.emit('fail', self.test, err);+ self.emit('end');});return this;diff --git a/test/unit/uncaught.js b/test/unit/uncaught.jsindex 817a0141..98861e1c 100644--- a/test/unit/uncaught.js+++ b/test/unit/uncaught.js@@ -1,6 +1,6 @@describe('uncaught', function(){- it('should report properly', function(test, done){+ it('should report properly', function(done){// if you uncomment this :)process.nextTick(function(){throw new Error("I'm uncaught!");