Skip to content

Commit 610cc44

Browse files
committed
use getRootNodeInternal in ReactWrapper simulateError
1 parent 3a566f9 commit 610cc44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/enzyme/src/ReactWrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ class ReactWrapper {
651651
throw new TypeError('your adapter does not support `simulateError`. Try upgrading it!');
652652
}
653653

654-
const rootNode = this[ROOT].getNodeInternal();
654+
const rootNode = getRootNodeInternal(this);
655655
const nodeHierarchy = [thisNode].concat(nodeParents(this, thisNode));
656656
renderer.simulateError(nodeHierarchy, rootNode, error);
657657

0 commit comments

Comments
 (0)