Skip to content

Commit

Permalink
fix problems with only/skip in IE7/IE8
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Sep 27, 2016
1 parent 8ef51a5 commit 8ccccba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit 8ccccba

Please sign in to comment.