import React from 'react' ; import { shallow } from 'enzyme' ; import { ErrorStatePrompt } from '../../../shared/error_state' ; import { ErrorConnecting } from './' ; describe ( 'ErrorConnecting' , ( ) => { it ( 'renders' , ( ) => { const wrapper = shallow ( < ErrorConnecting />); const errorStatePrompt = wrapper . find ( ErrorStatePrompt ) ; expect ( errorStatePrompt ) . toHaveLength ( 1 ) ; } ) ; } ) ;