Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it('calls actions as expected when toggling switches', () => {
- const wrapper = shallow(
- <CameraSettings />,
- { context: { store: mockStore(initialState) } },
- );
- const render = wrapper.dive();
- render.find('Switch').forEach(child => {
- child.simulate('valueChange');
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement