Skip to content

Commit

Permalink
Move comment inside if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
chinchiheather committed Dec 27, 2018
1 parent 3a387b8 commit 7a17c9a
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 @@ -324,8 +324,8 @@ Runner.prototype.hook = function(name, fn) {
hook.pending = true;
}
} else {
// set the current test to the next one to run so the error message is correct
if (!self.suite.bail()) {
// set the current test to the next one to run so the error message is correct
hook.ctx.currentTest = suite.tests[0];
}
self.failHook(hook, err);
Expand Down

0 comments on commit 7a17c9a

Please sign in to comment.