import { shallow } from 'enzyme' ; import React from 'react' ; import { EuiThemeProvider } from '../../../../../../../../../src/plugins/kibana_react/common' ; import { AgentMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks' ; import { AgentMarker } from './agent_marker' ; describe ( 'AgentMarker' , ( ) => { const mark = { id : 'agent' , offset : 1000 , type : 'agentMark' , verticalLine : true , } as AgentMark ; it ( 'renders' , ( ) => { const component = shallow ( < EuiThemeProvider > < AgentMarker mark = { mark } / > < /EuiThemeProvider>); expect ( component ) . toMatchSnapshot ( ) ; } ) ; } ) ;