diff --git a/packages/react-dom/src/__tests__/refs-test.js b/packages/react-dom/src/__tests__/refs-test.js index 9d1965c1a465a..363005f06658c 100644 --- a/packages/react-dom/src/__tests__/refs-test.js +++ b/packages/react-dom/src/__tests__/refs-test.js @@ -401,35 +401,6 @@ describe('ref swapping', () => { 'Expected ref to be a function, a string, an object returned by React.createRef(), or null.', ); }); - - it('should warn about callback refs returning a function', () => { - const container = document.createElement('div'); - expect(() => { - ReactDOM.render(
({})} />, container); - ReactDOM.render(
null} />, container); - ReactDOM.render(
undefined} />, container); - - // Still warns on functions (not deduped). - expect(() => { - ReactDOM.render(