import React from 'react' ; import { render , RenderResult } from '@toptal/picasso/test-utils' ; import Typography from '../Typography' ; import Paper from './' ; const renderPaper = ( children ) => { return render ( < Paper > { children } < /Paper>); } ; describe ( 'Paper' , ( ) => { let api ; beforeEach ( ( ) => { api = renderPaper ( < Typography > This is Paper < /Typography>); } ) ; it ( 'renders' , ( ) => { const { container } = api ; expect ( container ) . toMatchSnapshot ( ) ; } ) ; } ) ;