Skip to content

Instantly share code, notes, and snippets.

@christopherkade
Created April 2, 2019 07:56
Show Gist options
  • Save christopherkade/46fa28c5d149b8a88f3c979bc65a2c1c to your computer and use it in GitHub Desktop.
Save christopherkade/46fa28c5d149b8a88f3c979bc65a2c1c to your computer and use it in GitHub Desktop.
Unit test example 08
it("should increase counter when the button is clicked", () => {
wrapper.find("button").simulate("click")
expect(wrapper.find("h1").text()).toContain("1")
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment