import React from 'react' ; import { shallow } from 'enzyme' ; import { AutomatedCurationsHistoryPanel , IgnoredQueriesPanel , RejectedCurationsHistoryPanel , } from './components' ; import { CurationsHistory } from './curations_history' ; describe ( 'CurationsHistory' , ( ) => { it ( 'renders' , ( ) => { const wrapper = shallow ( < CurationsHistory />); expect ( wrapper . find ( AutomatedCurationsHistoryPanel ) ) . toHaveLength ( 1 ) ; expect ( wrapper . find ( RejectedCurationsHistoryPanel ) ) . toHaveLength ( 1 ) ; expect ( wrapper . find ( IgnoredQueriesPanel ) ) . toHaveLength ( 1 ) ; } ) ; } ) ;