import { mount } from 'enzyme' ; import React from 'react' ; import TrashBin from './TrashBin' ; import DesktopButton from '../../DesktopButton/DesktopButton' ; import { withReduxAndStyledProviders } from '../../../test/testUtils' ; returns { JSX . Element } const setup = ( ) => { return mount ( withReduxAndStyledProviders ( < TrashBin />)); } ; describe ( 'TrashBin' , ( ) => { const wrap = setup ( ) ; it ( 'should render without throwing an error' , ( ) => { expect ( wrap ) ; expect ( wrap . length ) . toBe ( 1 ) ; } ) ; it ( 'should render correct trash bin content === angular' , ( ) => { const binContent = wrap . find ( DesktopButton ) ; expect ( binContent . length ) . toBe ( 1 ) ; } ) ; } ) ;