@@ -11,7 +11,7 @@ import {
1111import { ITERATOR_SYMBOL , sym } from 'enzyme/build/Utils' ;
1212
1313import './_helpers/setupAdapters' ;
14- import { createClass , createContext , createPortal } from './_helpers/react-compat' ;
14+ import { createClass , createContext , createPortal , forwardRef } from './_helpers/react-compat' ;
1515import {
1616 describeWithDOM ,
1717 describeIf ,
@@ -186,7 +186,7 @@ describeWithDOM('mount', () => {
186186 it ( 'should mount without complaint' , ( ) => {
187187 const warningStub = sinon . stub ( console , 'error' ) ;
188188
189- const SomeComponent = React . forwardRef ( ( props , ref ) => (
189+ const SomeComponent = forwardRef ( ( props , ref ) => (
190190 < div { ...props } ref = { ref } />
191191 ) ) ;
192192
@@ -199,7 +199,7 @@ describeWithDOM('mount', () => {
199199
200200 it ( 'should find elements through forwardedRef elements' , ( ) => {
201201 const testRef = ( ) => { } ;
202- const SomeComponent = React . forwardRef ( ( props , ref ) => (
202+ const SomeComponent = forwardRef ( ( props , ref ) => (
203203 < div ref = { ref } >
204204 < span className = "child1" />
205205 < span className = "child2" />
0 commit comments