Current behaviour
ReactTestUtil is returning nodes with event type cast to lower case strings. This is causing test failures in several external repos (react-select being a public-facing example). As far as i can tell, the issue appears to be that this type mis-match is causing DOM nodes to not to return the same node that was initially called.
Expected behaviour
ReactTestUtil should return the proper event type, cast to string.
Steps to verify
- Clone https://github.com/JedWatson/react-select,
npm install && npm test verify tests fail and react and react-addon-test-util are using v15.3.0.
- Replace line 429
node_modules/react/lib/ReactTestUtils.js with fakeNativeEvent.type = eventType.toString();
- run
npm test and verify tests pass.
Tested with
React 15.3.0 / Chrome 51 / OS X