Last active
August 30, 2018 18:15
-
-
Save becca-bailey/d5d8932e81c8bf5f300db047d5af1faa to your computer and use it in GitHub Desktop.
This file contains hidden or 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("shows an alert", () => { | |
| const wrapper = mount(<SimpleComponentWithAlert />); | |
| wrapper.find('button').simulate('click'); | |
| expect(wrapper.text()).toContain("This is my alert")); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment