Skip to content

Commit

Permalink
Simplify redundant lines
Browse files Browse the repository at this point in the history
(...somehow only noticed this when reviewing to create a PR...)
  • Loading branch information
ScottFreeCode authored Jun 11, 2017
1 parent 262a17c commit 89c7107
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -537,11 +537,10 @@ Runner.prototype.runTests = function (suite, fn) {
test.isPending = alwaysFalse;
self.fail(test, new Error("Pending test forbidden"));
delete test.isPending;
self.emit('test end', test);
} else {
self.emit('pending', test);
self.emit('test end', test);
}
self.emit('test end', test);
return next();
}

Expand All @@ -553,11 +552,10 @@ Runner.prototype.runTests = function (suite, fn) {
test.isPending = alwaysFalse;
self.fail(test, new Error("Pending test forbidden"));
delete test.isPending;
self.emit('test end', test);
} else {
self.emit('pending', test);
self.emit('test end', test);
}
self.emit('test end', test);
return next();
}
if (err) {
Expand Down

0 comments on commit 89c7107

Please sign in to comment.