File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/react-reconciler/src/__tests__ Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1478,8 +1478,10 @@ describe('ReactUse', () => {
14781478 const promiseB = Promise . resolve ( 'B' ) ;
14791479 const promiseC = Promise . resolve ( 'C' ) ;
14801480
1481+ const refSymbol = { } ;
1482+
14811483 const Async = React . forwardRef ( ( props , ref ) => {
1482- React . useImperativeHandle ( ref , ( ) => ( { } ) ) ;
1484+ React . useImperativeHandle ( ref , ( ) => refSymbol ) ;
14831485 const text = use ( promiseA ) + use ( promiseB ) + use ( promiseC ) ;
14841486 return < Text text = { text } /> ;
14851487 } ) ;
@@ -1505,6 +1507,6 @@ describe('ReactUse', () => {
15051507 } ) ;
15061508 assertLog ( [ 'ABC' ] ) ;
15071509 expect ( root ) . toMatchRenderedOutput ( 'ABC' ) ;
1508- expect ( _ref ) . toBeDefined ( ) ;
1510+ expect ( _ref ) . toBe ( refSymbol ) ;
15091511 } ) ;
15101512} ) ;
You can’t perform that action at this time.
0 commit comments