Skip to content

Commit 0da9e32

Browse files
committed
Followup remove dead test code from #30346
I missed that this was a constant false check when making the broader cleanup changes in #30346
1 parent 07aa494 commit 0da9e32

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/react/src/__tests__/ReactElementClone-test.js

-6
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,6 @@ describe('ReactElementClone', () => {
273273
if (gate(flags => flags.disableStringRefs)) {
274274
expect(component.childRef).toEqual({current: null});
275275
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');
279276
} else if (gate(flags => !flags.disableStringRefs)) {
280277
expect(component.childRef).toEqual({current: null});
281278
expect(component.parentRef.current.xyzRef.current.tagName).toBe('SPAN');
@@ -413,9 +410,6 @@ describe('ReactElementClone', () => {
413410
{withoutStack: true},
414411
);
415412
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'});
419413
} else if (gate(flags => !flags.disableStringRefs)) {
420414
expect(() => {
421415
expect(clone.ref).toBe(element.ref);

0 commit comments

Comments
 (0)