import React from 'react' ; import { shallow , ShallowWrapper } from 'enzyme' ; import { NetworkProvider } from '../network' ; jest . mock ( '../configData' ) ; describe ( '<NetworkProvider />' , ( ) => { let wrapper ; beforeEach ( ( ) => { wrapper = shallow ( < NetworkProvider > < div className = "test" / > < /NetworkProvider>); } ) ; it ( 'renders children when passed in' , ( ) => { expect ( wrapper . contains ( < div className = "test" / > ) ) . toEqual ( true ) ; } ) ; } ) ;