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) {
if (element.type === 'input') {
return {
nodeType: 1,
focus() {},
};
}

Loading…
Cancel
Save