Skip to content

Instantly share code, notes, and snippets.

@manjumuthaiya
Created June 24, 2016 18:37
Show Gist options
  • Save manjumuthaiya/58080533d80145d5f18f22936dc6010d to your computer and use it in GitHub Desktop.
Save manjumuthaiya/58080533d80145d5f18f22936dc6010d to your computer and use it in GitHub Desktop.
Enzyme testing cheatsheet (jasmine-enzyme)
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