Skip to content

Commit 51a00f0

Browse files
committed
remove memo test
1 parent 68408a4 commit 51a00f0

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

packages/react-reconciler/src/__tests__/ReactMemo-test.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -497,21 +497,5 @@ describe('memo', () => {
497497
expect(root).toMatchRenderedOutput('1');
498498
});
499499
});
500-
501-
it('inner component of react memo should have _debugOwner set', async () => {
502-
const InComponent = React.forwardRef((props, ref) => <div ref={ref} />);
503-
const Outer = React.memo(InComponent);
504-
const App = () => {
505-
const ref = React.createRef();
506-
return <Outer ref={ref}>Click me! </Outer>;
507-
};
508-
ReactNoop.render(<App />);
509-
expect(Scheduler).toFlushWithoutYielding();
510-
const innerFiber = ReactNoop.getRoot().current.child.child.child;
511-
const innerFiberOwner = innerFiber._debugOwner;
512-
expect(innerFiber.type.$$typeof).toBe(Symbol.for('react.forward_ref'));
513-
expect(innerFiberOwner).not.toBeNull();
514-
expect(innerFiberOwner.type.$$typeof).toBe(Symbol.for('react.memo'));
515-
});
516500
}
517501
});

0 commit comments

Comments
 (0)