dillon1000/react

Commit

[TestUtils] Copy type to nativeEvent in Simulate.<eventName> (#6154)

Although it is unreasonable to set every possible property for
simulated events, `type` is useful for event handlers that are shared
between types and potentially have different behaviors.
Browse files
Changed paths2 files
First-parent comparison
M src/test/ReactTestUtils.js ModifiedM src/test/__tests__/ReactTestUtils-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…