File tree 1 file changed +0
-6
lines changed
packages/react/src/__tests__
1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -273,9 +273,6 @@ describe('ReactElementClone', () => {
273
273
if ( gate ( flags => flags . disableStringRefs ) ) {
274
274
expect ( component . childRef ) . toEqual ( { current : null } ) ;
275
275
expect ( component . parentRef . current . xyzRef . current . tagName ) . toBe ( 'SPAN' ) ;
276
- } else if ( gate ( flags => false ) ) {
277
- expect ( component . childRef ) . toEqual ( { current : null } ) ;
278
- expect ( component . parentRef . current . xyzRef . current . tagName ) . toBe ( 'SPAN' ) ;
279
276
} else if ( gate ( flags => ! flags . disableStringRefs ) ) {
280
277
expect ( component . childRef ) . toEqual ( { current : null } ) ;
281
278
expect ( component . parentRef . current . xyzRef . current . tagName ) . toBe ( 'SPAN' ) ;
@@ -413,9 +410,6 @@ describe('ReactElementClone', () => {
413
410
{ withoutStack : true } ,
414
411
) ;
415
412
expect ( clone . props ) . toEqual ( { foo : 'ef' , ref : '34' } ) ;
416
- } else if ( gate ( flags => false ) ) {
417
- expect ( clone . ref ) . toBe ( element . ref ) ;
418
- expect ( clone . props ) . toEqual ( { foo : 'ef' } ) ;
419
413
} else if ( gate ( flags => ! flags . disableStringRefs ) ) {
420
414
expect ( ( ) => {
421
415
expect ( clone . ref ) . toBe ( element . ref ) ;
You can’t perform that action at this time.
0 commit comments