From 9cfbed6763b2d1d65195fe1fe4033e3a917b11cf Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Tue, 17 Jul 2018 22:20:29 +0100 Subject: [PATCH] Remove unnecessary changes --- .../src/__tests__/ReactDOMInput-test.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/packages/react-dom/src/__tests__/ReactDOMInput-test.js b/packages/react-dom/src/__tests__/ReactDOMInput-test.js index 73b5f5ef815f8..5afa9dcf7aaf4 100644 --- a/packages/react-dom/src/__tests__/ReactDOMInput-test.js +++ b/packages/react-dom/src/__tests__/ReactDOMInput-test.js @@ -106,6 +106,7 @@ describe('ReactDOMInput', () => { ReactDOM.render(, container); ReactDOM.unmountComponentAtNode(container); ReactDOM.render(, container); + ReactDOM.unmountComponentAtNode(container); ReactDOM.render(, container); ReactDOM.unmountComponentAtNode(container); ReactDOM.render(, container); @@ -1096,10 +1097,7 @@ describe('ReactDOMInput', () => { const stub = ; ReactDOM.render(stub, container); expect(() => - ReactDOM.render( - , - container, - ), + ReactDOM.render(, container), ).toWarnDev( 'Warning: A component is changing an uncontrolled input of type text to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + @@ -1181,10 +1179,7 @@ describe('ReactDOMInput', () => { const stub = ; ReactDOM.render(stub, container); expect(() => - ReactDOM.render( - , - container, - ), + ReactDOM.render(, container), ).toWarnDev( 'Warning: A component is changing an uncontrolled input of type checkbox to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + @@ -1266,10 +1261,7 @@ describe('ReactDOMInput', () => { const stub = ; ReactDOM.render(stub, container); expect(() => - ReactDOM.render( - , - container, - ), + ReactDOM.render(, container), ).toWarnDev( 'Warning: A component is changing an uncontrolled input of type radio to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +