import React from 'react' ; import { shallow } from 'enzyme' ; import { EuiLink , EuiText } from '@elastic/eui' ; import { LicenseCallout } from '.' ; describe ( 'LicenseCallout' , ( ) => { it ( 'renders' , ( ) => { const wrapper = shallow ( < LicenseCallout message = "foo" / > ) ; expect ( wrapper . find ( EuiLink ) ) . toHaveLength ( 1 ) ; expect ( wrapper . find ( EuiText ) ) . toHaveLength ( 1 ) ; } ) ; } ) ;