Skip to content

Commit

Permalink
Followup: remove dead test code from #30346 (#31415)
Browse files Browse the repository at this point in the history
I missed that this was a constant false check when making the broader
cleanup changes in #30346
  • Loading branch information
kassens authored Nov 6, 2024
1 parent c3570b1 commit 3dc1e48
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/react/src/__tests__/ReactElementClone-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,6 @@ describe('ReactElementClone', () => {
if (gate(flags => flags.disableStringRefs)) {
expect(component.childRef).toEqual({current: null});
expect(component.parentRef.current.xyzRef.current.tagName).toBe('SPAN');
} else if (gate(flags => false)) {
expect(component.childRef).toEqual({current: null});
expect(component.parentRef.current.xyzRef.current.tagName).toBe('SPAN');
} else if (gate(flags => !flags.disableStringRefs)) {
expect(component.childRef).toEqual({current: null});
expect(component.parentRef.current.xyzRef.current.tagName).toBe('SPAN');
Expand Down Expand Up @@ -413,9 +410,6 @@ describe('ReactElementClone', () => {
{withoutStack: true},
);
expect(clone.props).toEqual({foo: 'ef', ref: '34'});
} else if (gate(flags => false)) {
expect(clone.ref).toBe(element.ref);
expect(clone.props).toEqual({foo: 'ef'});
} else if (gate(flags => !flags.disableStringRefs)) {
expect(() => {
expect(clone.ref).toBe(element.ref);
Expand Down

0 comments on commit 3dc1e48

Please sign in to comment.