Skip to content

Instantly share code, notes, and snippets.

@lfac-pt
Last active May 29, 2019 09:55
Show Gist options
  • Save lfac-pt/6a071b96918f5609f17c3b181b861ad1 to your computer and use it in GitHub Desktop.
Save lfac-pt/6a071b96918f5609f17c3b181b861ad1 to your computer and use it in GitHub Desktop.
Example 1 of my JavaScript and React unit tests basics
test("should update the dom", () => {
$("div").text("bob");
expect($("div").text()).toBe("bob");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment