Closed irvinebroque closed 7 years ago
Had a problem that somehow looks like this, I had a default prop value that was a funcion and tried to pass another function, but it wasn't replace. I guess renderIntoDocument
doesn't pass functions as props, just serializable values.
@irvinebroque Thanks it ( TestUtils.Simulate.mouseDown(node), ... ) works :)
Related to #15 -- I was writing a unit test for another component that uses react-tappable, with the following behavior (simplified to isolate react-tappable):
The test case fails with the following trace:
What am I missing here about why the callback does not fire, specific to touch events? A similar test case with a
mouseDown
andmouseUp
simulated events does pass:(I'd be happy to contribute tests in a PR, but want to make sure I understand intended behavior with touch events)