Created
May 11, 2017 08:22
-
-
Save tarjei/4d33f484f95cfb0fc3707bf62522268f to your computer and use it in GitHub Desktop.
React Router V4 tests using enzyme to trigger route requires {button:0}
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
// will not trigger click: | |
page.find('a').simulate('click') | |
// works | |
page.find('a').simulate('click', {button:0}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment