@@ -1096,10 +1096,7 @@ describe('ReactDOMInput', () => {
10961096 const stub = < input type = "text" /> ;
10971097 ReactDOM . render ( stub , container ) ;
10981098 expect ( ( ) =>
1099- ReactDOM . render (
1100- < input type = "text" value = "controlled" onChange = { emptyFunction } /> ,
1101- container ,
1102- ) ,
1099+ ReactDOM . render ( < input type = "text" value = "controlled" /> , container ) ,
11031100 ) . toWarnDev (
11041101 'Warning: A component is changing an uncontrolled input of type text to be controlled. ' +
11051102 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
@@ -1181,10 +1178,7 @@ describe('ReactDOMInput', () => {
11811178 const stub = < input type = "checkbox" /> ;
11821179 ReactDOM . render ( stub , container ) ;
11831180 expect ( ( ) =>
1184- ReactDOM . render (
1185- < input type = "checkbox" checked = { true } onChange = { emptyFunction } /> ,
1186- container ,
1187- ) ,
1181+ ReactDOM . render ( < input type = "checkbox" checked = { true } /> , container ) ,
11881182 ) . toWarnDev (
11891183 'Warning: A component is changing an uncontrolled input of type checkbox to be controlled. ' +
11901184 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
@@ -1266,10 +1260,7 @@ describe('ReactDOMInput', () => {
12661260 const stub = < input type = "radio" checked = { null } /> ;
12671261 ReactDOM . render ( stub , container ) ;
12681262 expect ( ( ) =>
1269- ReactDOM . render (
1270- < input type = "radio" checked = { true } onChange = { emptyFunction } /> ,
1271- container ,
1272- ) ,
1263+ ReactDOM . render ( < input type = "radio" checked = { true } /> , container ) ,
12731264 ) . toWarnDev (
12741265 'Warning: A component is changing an uncontrolled input of type radio to be controlled. ' +
12751266 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
0 commit comments