From 8ccccba817143539f074362f2f95b3f731d23cef Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Mon, 26 Sep 2016 23:27:56 -0700 Subject: [PATCH] fix problems with only/skip in IE7/IE8 --- lib/runner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/runner.js b/lib/runner.js index 145d990351..dc03ec451a 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -310,7 +310,7 @@ Runner.prototype.hook = function(name, fn) { if (name === 'beforeEach' || name === 'afterEach') { self.test.pending = true; } else { - suite.tests.forEach(function(test) { + utils.forEach(suite.tests, function(test) { test.pending = true; }); // a pending hook won't be executed twice. @@ -863,7 +863,7 @@ function filterOnly(suite) { } else { // Otherwise, do not run any of the tests in this suite. suite.tests = []; - suite._onlySuites.forEach(function(onlySuite) { + utils.forEach(suite._onlySuites, function(onlySuite) { // If there are other `only` tests/suites nested in the current `only` suite, then filter that `only` suite. // Otherwise, all of the tests on this `only` suite should be run, so don't filter it. if (hasOnly(onlySuite)) {