Skip to content

Commit

Permalink
Also test suite skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottFreeCode committed Jun 17, 2017
1 parent 2307511 commit 245c9cc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

describe.skip('forbid pending - suite marked with skip', function () {
it('test1', function () {});
});
9 changes: 9 additions & 0 deletions test/integration/options.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,5 +263,14 @@ describe('options', function () {
done();
});
});

it('fails if there are tests in suites marked skip', function (done) {
run('options/forbid-pending/skip-suite.js', args, function (err, res) {
assert(!err);
assert.equal(res.code, 1);
assert.equal(res.failures[0].err.message, pendingErrorMessage);
done();
});
});
});
});

0 comments on commit 245c9cc

Please sign in to comment.