Skip to content

Instantly share code, notes, and snippets.

@lotif
Last active June 17, 2017 02:06
Show Gist options
  • Save lotif/3627b8be0c80727139b137eafa8103a1 to your computer and use it in GitHub Desktop.
Save lotif/3627b8be0c80727139b137eafa8103a1 to your computer and use it in GitHub Desktop.
test component integration tests
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