Skip to content

Commit

Permalink
Test before as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottFreeCode committed Jun 13, 2017
1 parent a0549d1 commit 2307511
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';

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

it('fails if before calls `skip()`', function (done) {
run('options/forbid-pending/before-this.skip.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 2307511

Please sign in to comment.