Browse Source

Fix createNodeMock doc to avoid Invariant Violation (#8989)

main
BDav24 8 years ago
committed by Dan Abramov
parent
commit
703ba161e5
  1. 1
      _posts/2016-11-16-react-v15.4.0.md

1
_posts/2016-11-16-react-v15.4.0.md

@ -75,6 +75,7 @@ import renderer from 'react-test-renderer';
function createNodeMock(element) { function createNodeMock(element) {
if (element.type === 'input') { if (element.type === 'input') {
return { return {
nodeType: 1,
focus() {}, focus() {},
}; };
} }

Loading…
Cancel
Save