Skip to content

Commit 284e154

Browse files
committed
if skip() used in beforeEach, mark all tests as pending
1 parent 22dbad7 commit 284e154

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/runner.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,9 @@ Runner.prototype.hook = function(name, fn) {
302302
}
303303
if (err) {
304304
if (err instanceof Pending) {
305-
self.test.pending = true;
306-
console.log(self.test);
305+
suite.tests.forEach(function(test) {
306+
test.pending = true;
307+
});
307308
} else {
308309
self.failHook(hook, err);
309310

0 commit comments

Comments
 (0)