File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/enzyme-test-suite/test Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -667,9 +667,9 @@ describe('shallow', () => {
667
667
} ) ;
668
668
} ) ;
669
669
670
- describe ( 'shallow() on Provider and Consumer through .contextType' , ( ) => {
670
+ describeIf ( is ( '>= 16.3' ) , 'shallow() on Provider and Consumer through .contextType' , ( ) => {
671
671
672
- const { Provider } = React . createContext ( 'howdy!' ) ;
672
+ const { Provider } = createContext ( 'howdy!' ) ;
673
673
674
674
class OuterComponent extends React . Component {
675
675
render ( ) {
@@ -698,7 +698,7 @@ describe('shallow', () => {
698
698
699
699
it ( 'works on a Provider' , ( ) => {
700
700
const wrapper = shallow ( < OuterComponent /> ) ;
701
- const provides = wrapper . find ( Provider ) . dive ( ) ;
701
+ const provides = wrapper . find ( Provider ) . shallow ( ) ;
702
702
const provider = provides . find ( InnerComponent ) . shallow ( ) ;
703
703
expect ( provider . text ( ) ) . to . equal ( 'foo' ) ;
704
704
} ) ;
You can’t perform that action at this time.
0 commit comments