Skip to content

Commit

Permalink
Rebase off master and fix root node references
Browse files Browse the repository at this point in the history
  • Loading branch information
lelandrichardson committed Feb 8, 2017
1 parent cf8a7a7 commit cc80a77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/renderers/testing/ReactTestRendererFiber.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ var ReactTestFiberRenderer = {
createNodeMock,
tag: 'CONTAINER',
};
var root = TestRenderer.createContainer(container).stateNode;
TestRenderer.updateContainer(element, root.current, null, null);
var root = TestRenderer.createContainer(container);
TestRenderer.updateContainer(element, root, null, null);

return {
toJSON() {
Expand All @@ -330,21 +330,21 @@ var ReactTestFiberRenderer = {
if (root.current == null) {
return;
}
TestRenderer.updateContainer(newElement, root.current, null, null);
TestRenderer.updateContainer(newElement, root, null, null);
},
unmount() {
if (root.current == null) {
return;
}
TestRenderer.updateContainer(null, root.current, null);
TestRenderer.updateContainer(null, root, null);
container = null;
root = null;
},
getInstance() {
if (root.current == null) {
return null;
}
return TestRenderer.getPublicRootInstance(root.current);
return TestRenderer.getPublicRootInstance(root);
},
};
},
Expand Down

0 comments on commit cc80a77

Please sign in to comment.