Guest User

Untitled

a guest
Jan 20th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. const store = storeFactory({ success: true });
  2. test('renders component without error', () => {
  3. const wrapper = shallow(<Input store={store} />);
  4.  
  5. expect(wrapper.props()).toBe({});
  6. });
  7.  
  8. export const storeFactory = initialState => {
  9. return createStore(rootReducer, initialState);
  10. };
Add Comment
Please, Sign In to add comment