how to pass props to state in react test cases code example
Example: 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);
});