import React from 'react' ; import { shallow } from 'enzyme' ; import { EuiPanel , EuiLink } from '@elastic/eui' ; import { DocumentPermissionsCallout } from './document_permissions_callout' ; describe ( 'DocumentPermissionsCallout' , ( ) => { it ( 'renders' , ( ) => { const wrapper = shallow ( < DocumentPermissionsCallout />); expect ( wrapper . find ( EuiPanel ) ) . toHaveLength ( 1 ) ; expect ( wrapper . find ( EuiLink ) ) . toHaveLength ( 1 ) ; } ) ; } ) ;