☕️ Classic, reliable, trusted test framework for Node.js and the browser
fix problems with only/skip in IE7/IE8
Christopher Hiller8ccccba81714
diff --git a/lib/runner.js b/lib/runner.jsindex 145d9903..dc03ec45 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)) {