import React from 'react' ; import { shallow } from 'enzyme' ; import { EuiIcon } from '@elastic/eui' ; import { SourceIcon } from './' ; describe ( 'SourceIcon' , ( ) => { it ( 'renders' , ( ) => { const wrapper = shallow ( < SourceIcon name = "foo" serviceType = "custom" / > ) ; expect ( wrapper . find ( EuiIcon ) ) . toHaveLength ( 1 ) ; expect ( wrapper . find ( '.user-group-source' ) ) . toHaveLength ( 0 ) ; } ) ; } ) ;