From 6c7e126270007391a1c8cdf09443ccc1700fa666 Mon Sep 17 00:00:00 2001 From: BDav24 Date: Mon, 13 Feb 2017 20:01:22 +0100 Subject: [PATCH] Fix createNodeMock doc to avoid Invariant Violation --- docs/_posts/2016-11-16-react-v15.4.0.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/_posts/2016-11-16-react-v15.4.0.md b/docs/_posts/2016-11-16-react-v15.4.0.md index d07691a04e8..ee34c69529e 100644 --- a/docs/_posts/2016-11-16-react-v15.4.0.md +++ b/docs/_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() {}, }; }