import { shallow } from 'enzyme' ; import React from 'react' ; import { withReduxAndStyledProviders } from '../../test/testUtils' ; import Taskbar from './Taskbar' ; returns { JSX . Element } const setup = ( ) => { return shallow ( withReduxAndStyledProviders ( < Taskbar />)); } ; describe ( 'Taskbar' , ( ) => { const wrap = setup ( ) ; it ( 'should render without throwing an error' , ( ) => { expect ( wrap ) ; expect ( wrap . length ) . toBe ( 1 ) ; } ) ; } ) ;