Skip to content

fix: remove mockProps and wrapper from fileters Robots#62

Open
timothyrusso wants to merge 1 commit into
aneagoie:masterfrom
timothyrusso:fix/no-mocked-needed
Open

fix: remove mockProps and wrapper from fileters Robots#62
timothyrusso wants to merge 1 commit into
aneagoie:masterfrom
timothyrusso:fix/no-mocked-needed

Conversation

@timothyrusso
Copy link
Copy Markdown

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}/>)
 })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant