Created
June 24, 2016 18:37
-
-
Save manjumuthaiya/58080533d80145d5f18f22936dc6010d to your computer and use it in GitHub Desktop.
Enzyme testing cheatsheet (jasmine-enzyme)
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
To debug an element : | |
`console.log(element.debug())` | |
To test the html rendered: | |
`expect(element.html()).toEqual('<div>content</div>');` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment