import React from 'react' ; import { render } from '@toptal/picasso/test-utils' ; import RatingIcon , { Props } from './RatingIcon' ; const defaultProps = { active : true , interactive : true , size : 'small' } ; const renderRatingIcon = ( props = defaultProps ) => render ( < RatingIcon { ... props } / > ) ; describe ( 'RatingIcon' , ( ) => { it ( 'renders' , ( ) => { const { container } = renderRatingIcon ( ) ; expect ( container ) . toMatchSnapshot ( ) ; } ) ; } ) ;