Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
charlierudolph committed Feb 1, 2017
1 parent c2a84e6 commit 6780cac
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 @@ -822,10 +822,8 @@ Runner.prototype.run = function (fn) {
// callback
this.on('end', function () {
var failures = self.failures;
if (self.forbidOnly) {
if (self.hasOnly) {
failures += self.stats.tests;
}
if (self.forbidOnly and self.hasOnly) {
failures += self.stats.tests;
}
if (self.forbidPending) {
failures += self.stats.pending;
Expand Down

0 comments on commit 6780cac

Please sign in to comment.