Skip to content

Instantly share code, notes, and snippets.

@tarjei
Created May 11, 2017 08:22
Show Gist options
  • Save tarjei/4d33f484f95cfb0fc3707bf62522268f to your computer and use it in GitHub Desktop.
Save tarjei/4d33f484f95cfb0fc3707bf62522268f to your computer and use it in GitHub Desktop.
React Router V4 tests using enzyme to trigger route requires {button:0}
// 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