diff --git a/packages/react-dom/src/__tests__/refs-test.js b/packages/react-dom/src/__tests__/refs-test.js index 14c8261d02468..b03d49897eeda 100644 --- a/packages/react-dom/src/__tests__/refs-test.js +++ b/packages/react-dom/src/__tests__/refs-test.js @@ -351,35 +351,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(