Skip to content

Commit

Permalink
[Tests] fix describeIf helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed May 4, 2019
1 parent aa9828a commit b4a3212
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/enzyme-test-suite/test/_helpers/index.jsx
Expand Up @@ -14,7 +14,7 @@ export function describeIf(test, a, b) {
if (test) {
describe(a, b);
} else {
describe.skip(a);
describe.skip(a, b);
}
}

Expand All @@ -27,7 +27,7 @@ describeIf.only = (test, a, b) => {
describe.only(a, b);
} else {
describe.only('only:', () => {
describe.skip(a);
describe.skip(a, b);
});
}
};
Expand Down
Expand Up @@ -32,15 +32,15 @@ export default function describeGetWrappingComponent({
}
}

describeIf(is('<= 0.13'), '.getWrappingComponent()', () => {
describeIf(is('<= 0.13'), '<= 0.13: .getWrappingComponent()', () => {
it('throws', () => {
expect(() => Wrap(<div />, {
wrappingComponent: RendersChildren,
})).to.throw(TypeError, 'your adapter does not support `wrappingComponent`. Try upgrading it!');
});
});

describeIf(is('> 0.13'), '.getWrappingComponent()', () => {
describeIf(is('> 0.13'), '> 0.13: .getWrappingComponent()', () => {
class TestProvider extends React.Component {
getChildContext() {
const { value, renderMore, renderStateTester } = this.props;
Expand Down

0 comments on commit b4a3212

Please sign in to comment.