Fix createNodeMock doc to avoid Invariant Violation (#8989)

This commit is contained in:
BDav24
2017-02-13 21:13:31 +01:00
committed by Dan Abramov
parent 4c06869607
commit 703ba161e5

View File

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