import { shallow } from 'enzyme' ; import React from 'react' ; import Slide from './Slide' ; returns { JSX . Element } const setup = ( ) => { return shallow ( < Slide height = { '777px' } bgColor = { 'TOMATO' } anchorID = { '1' } / > ) ; } ; describe ( 'Slide' , ( ) => { const wrap = setup ( ) ; it ( 'should render without throwing an error' , ( ) => { expect ( wrap ) ; expect ( wrap . length ) . toBe ( 1 ) ; } ) ; } ) ;