Skip to content

Commit

Permalink
https://github.com/mochajs/mocha/issues/2302
Browse files Browse the repository at this point in the history
  • Loading branch information
dima117 committed Jun 10, 2016
1 parent e939d8e commit 5e5eac5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/runner.js
Expand Up @@ -287,6 +287,8 @@ Runner.prototype.hook = function(name, fn) {

hook.ctx.currentTest = self.test;

hook.allowUncaught = self.allowUncaught;

self.emit('hook', hook);

if (!hook.listeners('error').length) {
Expand Down

0 comments on commit 5e5eac5

Please sign in to comment.