Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const store = storeFactory({ success: true });
- test('renders component without error', () => {
- const wrapper = shallow(<Input store={store} />);
- expect(wrapper.props()).toBe({});
- });
- export const storeFactory = initialState => {
- return createStore(rootReducer, initialState);
- };
Add Comment
Please, Sign In to add comment