diff --git a/packages/enzyme-test-suite/test/ShallowWrapper-spec.jsx b/packages/enzyme-test-suite/test/ShallowWrapper-spec.jsx index 8f9d30646..eb5eda05c 100644 --- a/packages/enzyme-test-suite/test/ShallowWrapper-spec.jsx +++ b/packages/enzyme-test-suite/test/ShallowWrapper-spec.jsx @@ -667,9 +667,9 @@ describe('shallow', () => { }); }); - describe('shallow() on Provider and Consumer through .contextType', () => { + describeIf(is('>= 16.3'), 'shallow() on Provider and Consumer through .contextType', () => { - const { Provider } = React.createContext('howdy!'); + const { Provider } = createContext('howdy!'); class OuterComponent extends React.Component { render() { @@ -698,7 +698,7 @@ describe('shallow', () => { it('works on a Provider', () => { const wrapper = shallow(); - const provides = wrapper.find(Provider).dive(); + const provides = wrapper.find(Provider).shallow(); const provider = provides.find(InnerComponent).shallow(); expect(provider.text()).to.equal('foo'); });