Last active
May 29, 2019 09:55
-
-
Save lfac-pt/6a071b96918f5609f17c3b181b861ad1 to your computer and use it in GitHub Desktop.
Example 1 of my JavaScript and React unit tests basics
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
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