Last active
June 17, 2017 02:06
-
-
Save lotif/3627b8be0c80727139b137eafa8103a1 to your computer and use it in GitHub Desktop.
test component integration tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('should change the text on click', () => { | |
const sut = mount( | |
<Provider store={store}> | |
<MyComponent /> | |
</Provider> | |
); | |
sut.find('div').simulate('click'); | |
expect(sut.find('div').prop('children')).toEqual('new text'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment