Skip to content

Commit

Permalink
Apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
pablopalacios committed Mar 20, 2022
1 parent bbe1c52 commit eb5c76e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/enzyme-test-suite/test/ShallowWrapper-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -698,7 +698,7 @@ describe('shallow', () => {

it('works on a Provider', () => {
const wrapper = shallow(<OuterComponent />);
const provides = wrapper.find(Provider).dive();
const provides = wrapper.find(Provider).shallow();
const provider = provides.find(InnerComponent).shallow();
expect(provider.text()).to.equal('foo');
});
Expand Down

0 comments on commit eb5c76e

Please sign in to comment.