Last active
May 25, 2017 10:41
-
-
Save pahund/4c4940c501b7daaab0d6b79804a2c769 to your computer and use it in GitHub Desktop.
Example for usage of expect in Jest (taken from Jest API docs)
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
test('the best flavor is grapefruit', () => | |
expect(bestLaCroixFlavor()).toBe('grapefruit') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment