Advertisement
Guest User

Untitled

a guest
May 26th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. it('calls actions as expected when toggling switches', () => {
  2. const wrapper = shallow(
  3. <CameraSettings />,
  4. { context: { store: mockStore(initialState) } },
  5. );
  6. const render = wrapper.dive();
  7. render.find('Switch').forEach(child => {
  8. child.simulate('valueChange');
  9. });
  10. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement