Answers for "how to pass props in react test cases"

1

how to pass props in react test cases

it('renders results after search', () => {
  const fetched = true;
  const wrapper = mount(<Search store={store} {...fetched}/>);
  expect(wrapper.find('Results').length).toEqual(1);
});
Posted by: Guest on June-09-2020

Code answers related to "how to pass props in react test cases"

Code answers related to "Javascript"

Browse Popular Code Answers by Language