robofriends-testing icon indicating copy to clipboard operation
robofriends-testing copied to clipboard

fix: remove mockProps and wrapper from fileters Robots

Open timothyrusso opened this issue 2 years ago • 0 comments

Remove mockProps and wrapper from 'fileters Robots' in the MainPage.test.js

These values are not needed because are already defined in the beforeEach():

beforeEach(() => {
  const mockProps = {
    onRequestRobots: jest.fn(),
    robots: [],
    searchField: '',
    isPending: false
  }
  wrapper = shallow(<MainPage {...mockProps}/>)
 })

timothyrusso avatar Feb 24 '23 06:02 timothyrusso