Created
May 29, 2019 10:06
-
-
Save lfac-pt/4a1202d3d8bacc73d0f5ce16755ed221 to your computer and use it in GitHub Desktop.
Example 9 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
describe("deleteUser", () => { | |
test("makes a request to the delete user endpoint", () => { | |
// Test code | |
}); | |
}); | |
describe("render", () => { | |
test("renders the user name if the user is logged in", () => { | |
// Test code | |
}); | |
test("renders a placeholder if the user is not logged in", () => { | |
// Test code | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment