From e9e56ebf858fc6e5b5eb8e7632bf542cc30fbccc Mon Sep 17 00:00:00 2001 From: charlierudolph Date: Wed, 1 Feb 2017 09:23:06 -0800 Subject: [PATCH] fix and --- lib/runner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runner.js b/lib/runner.js index a6c72d1519..77208c7a0e 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -822,7 +822,7 @@ Runner.prototype.run = function (fn) { // callback this.on('end', function () { var failures = self.failures; - if (self.forbidOnly and self.hasOnly) { + if (self.forbidOnly && self.hasOnly) { failures += self.stats.tests; } if (self.forbidPending) {