import React from 'react' ; import { shallow } from 'enzyme' ; import { EuiBadge } from '@elastic/eui' ; import { LicenseBadge } from './' ; describe ( 'LicenseBadge' , ( ) => { it ( 'renders' , ( ) => { const wrapper = shallow ( < LicenseBadge />); expect ( wrapper . find ( EuiBadge ) . prop ( 'children' ) ) . toEqual ( 'Platinum feature' ) ; } ) ; } ) ;