import React , { ReactNode } from 'react' ; import { render } from '@testing-library/react' ; import { OmitInternalProps } from '@toptal/picasso-shared' ; import Loader , { Props } from './Loader' ; const renderLoader = ( children , props ) => { const { inline , size } = props ; return render ( < Loader inline = { inline } size = { size } > { children } < /Loader>); } ; describe ( 'Loader' , ( ) => { it ( 'props combo' , ( ) => { const { container } = renderLoader ( 'Testing' , { inline : true , size : 'large' } ) ; expect ( container ) . toMatchSnapshot ( ) ; } ) ; } ) ;