enzyme
Version:
JavaScript Testing utilities for React
22 lines (18 loc) • 605 B
JavaScript
;
var _chai = require('chai');
var _ = require('../..');
describe('describeWithDOM', function () {
describe('.only()', function () {
_.describeWithDOM.only('will skip all tests not called with only', function () {
it('will run only this test', function () {
(0, _chai.expect)(true).to.equal(true);
});
});
(0, _.describeWithDOM)('will not call other tests', function () {
it('will not run this test', function () {
// purposefully failing test that won't be called
(0, _chai.expect)(true).to.equal(false);
});
});
});
});