Skip to content

Commit dbe2dcc

Browse files
committed
Rerere-fix tests
1 parent 2a1088c commit dbe2dcc

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

packages/react-dom/src/__tests__/ReactDOMComponentTree-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ describe('ReactDOMComponentTree', () => {
178178
const component = <Controlled />;
179179
const instance = ReactDOM.render(component, container);
180180
expect(() => simulateInput(instance.a, finishValue)).toErrorDev(
181-
'Warning: A component is changing an uncontrolled input to be ' +
182-
'controlled. This is likely caused by the value changing from ' +
183-
'a defined to undefined, which should not happen. ' +
181+
'Warning: A component is changing an uncontrolled input to be controlled. ' +
182+
'This is likely caused by the value changing from undefined to ' +
183+
'a defined value, which should not happen. ' +
184184
'Decide between using a controlled or uncontrolled input ' +
185185
'element for the lifetime of the component. More info: ' +
186186
'https://fb.me/react-controlled-components',

packages/react-dom/src/__tests__/ReactDOMInput-test.js

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,8 +1266,8 @@ describe('ReactDOMInput', () => {
12661266
ReactDOM.render(stub, container);
12671267
expect(() => ReactDOM.render(<input type="text" />, container)).toErrorDev(
12681268
'Warning: A component is changing a controlled input to be uncontrolled. ' +
1269-
'This is likely caused by the value changing from undefined to ' +
1270-
'a defined value, which should not happen. ' +
1269+
'This is likely caused by the value changing from a defined to ' +
1270+
'undefined, which should not happen. ' +
12711271
'Decide between using a controlled or uncontrolled input ' +
12721272
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
12731273
' in input (at **)',
@@ -1285,8 +1285,8 @@ describe('ReactDOMInput', () => {
12851285
'`value` prop on `input` should not be null. ' +
12861286
'Consider using an empty string to clear the component or `undefined` for uncontrolled components',
12871287
'Warning: A component is changing a controlled input to be uncontrolled. ' +
1288-
'This is likely caused by the value changing from undefined to ' +
1289-
'a defined value, which should not happen. ' +
1288+
'This is likely caused by the value changing from a defined to ' +
1289+
'undefined, which should not happen. ' +
12901290
'Decide between using a controlled or uncontrolled input ' +
12911291
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
12921292
' in input (at **)',
@@ -1305,8 +1305,8 @@ describe('ReactDOMInput', () => {
13051305
),
13061306
).toErrorDev(
13071307
'Warning: A component is changing a controlled input to be uncontrolled. ' +
1308-
'This is likely caused by the value changing from undefined to ' +
1309-
'a defined value, which should not happen. ' +
1308+
'This is likely caused by the value changing from a defined to ' +
1309+
'undefined, which should not happen. ' +
13101310
'Decide between using a controlled or uncontrolled input ' +
13111311
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
13121312
' in input (at **)',
@@ -1320,8 +1320,8 @@ describe('ReactDOMInput', () => {
13201320
ReactDOM.render(<input type="text" value="controlled" />, container),
13211321
).toErrorDev(
13221322
'Warning: A component is changing an uncontrolled input to be controlled. ' +
1323-
'This is likely caused by the value changing from a defined to ' +
1324-
'undefined, which should not happen. ' +
1323+
'This is likely caused by the value changing from undefined to ' +
1324+
'a defined value, which should not happen. ' +
13251325
'Decide between using a controlled or uncontrolled input ' +
13261326
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
13271327
' in input (at **)',
@@ -1338,8 +1338,8 @@ describe('ReactDOMInput', () => {
13381338
ReactDOM.render(<input type="text" value="controlled" />, container),
13391339
).toErrorDev(
13401340
'Warning: A component is changing an uncontrolled input to be controlled. ' +
1341-
'This is likely caused by the value changing from a defined to ' +
1342-
'undefined, which should not happen. ' +
1341+
'This is likely caused by the value changing from undefined to ' +
1342+
'a defined value, which should not happen. ' +
13431343
'Decide between using a controlled or uncontrolled input ' +
13441344
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
13451345
' in input (at **)',
@@ -1355,8 +1355,8 @@ describe('ReactDOMInput', () => {
13551355
ReactDOM.render(<input type="checkbox" />, container),
13561356
).toErrorDev(
13571357
'Warning: A component is changing a controlled input to be uncontrolled. ' +
1358-
'This is likely caused by the value changing from undefined to ' +
1359-
'a defined value, which should not happen. ' +
1358+
'This is likely caused by the value changing from a defined to ' +
1359+
'undefined, which should not happen. ' +
13601360
'Decide between using a controlled or uncontrolled input ' +
13611361
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
13621362
' in input (at **)',
@@ -1372,8 +1372,8 @@ describe('ReactDOMInput', () => {
13721372
ReactDOM.render(<input type="checkbox" checked={null} />, container),
13731373
).toErrorDev(
13741374
'Warning: A component is changing a controlled input to be uncontrolled. ' +
1375-
'This is likely caused by the value changing from undefined to ' +
1376-
'a defined value, which should not happen. ' +
1375+
'This is likely caused by the value changing from a defined to ' +
1376+
'undefined, which should not happen. ' +
13771377
'Decide between using a controlled or uncontrolled input ' +
13781378
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
13791379
' in input (at **)',
@@ -1392,8 +1392,8 @@ describe('ReactDOMInput', () => {
13921392
),
13931393
).toErrorDev(
13941394
'Warning: A component is changing a controlled input to be uncontrolled. ' +
1395-
'This is likely caused by the value changing from undefined to ' +
1396-
'a defined value, which should not happen. ' +
1395+
'This is likely caused by the value changing from a defined to ' +
1396+
'undefined, which should not happen. ' +
13971397
'Decide between using a controlled or uncontrolled input ' +
13981398
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
13991399
' in input (at **)',
@@ -1407,8 +1407,8 @@ describe('ReactDOMInput', () => {
14071407
ReactDOM.render(<input type="checkbox" checked={true} />, container),
14081408
).toErrorDev(
14091409
'Warning: A component is changing an uncontrolled input to be controlled. ' +
1410-
'This is likely caused by the value changing from a defined to ' +
1411-
'undefined, which should not happen. ' +
1410+
'This is likely caused by the value changing from undefined to ' +
1411+
'a defined value, which should not happen. ' +
14121412
'Decide between using a controlled or uncontrolled input ' +
14131413
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
14141414
' in input (at **)',
@@ -1422,8 +1422,8 @@ describe('ReactDOMInput', () => {
14221422
ReactDOM.render(<input type="checkbox" checked={true} />, container),
14231423
).toErrorDev(
14241424
'Warning: A component is changing an uncontrolled input to be controlled. ' +
1425-
'This is likely caused by the value changing from a defined to ' +
1426-
'undefined, which should not happen. ' +
1425+
'This is likely caused by the value changing from undefined to ' +
1426+
'a defined value, which should not happen. ' +
14271427
'Decide between using a controlled or uncontrolled input ' +
14281428
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
14291429
' in input (at **)',
@@ -1435,8 +1435,8 @@ describe('ReactDOMInput', () => {
14351435
ReactDOM.render(stub, container);
14361436
expect(() => ReactDOM.render(<input type="radio" />, container)).toErrorDev(
14371437
'Warning: A component is changing a controlled input to be uncontrolled. ' +
1438-
'This is likely caused by the value changing from undefined to ' +
1439-
'a defined value, which should not happen. ' +
1438+
'This is likely caused by the value changing from a defined to ' +
1439+
'undefined, which should not happen. ' +
14401440
'Decide between using a controlled or uncontrolled input ' +
14411441
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
14421442
' in input (at **)',
@@ -1450,8 +1450,8 @@ describe('ReactDOMInput', () => {
14501450
ReactDOM.render(<input type="radio" checked={null} />, container),
14511451
).toErrorDev(
14521452
'Warning: A component is changing a controlled input to be uncontrolled. ' +
1453-
'This is likely caused by the value changing from undefined to ' +
1454-
'a defined value, which should not happen. ' +
1453+
'This is likely caused by the value changing from a defined to ' +
1454+
'undefined, which should not happen. ' +
14551455
'Decide between using a controlled or uncontrolled input ' +
14561456
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
14571457
' in input (at **)',
@@ -1465,8 +1465,8 @@ describe('ReactDOMInput', () => {
14651465
ReactDOM.render(<input type="radio" defaultChecked={true} />, container),
14661466
).toErrorDev(
14671467
'Warning: A component is changing a controlled input to be uncontrolled. ' +
1468-
'This is likely caused by the value changing from undefined to ' +
1469-
'a defined value, which should not happen. ' +
1468+
'This is likely caused by the value changing from a defined to ' +
1469+
'undefined, which should not happen. ' +
14701470
'Decide between using a controlled or uncontrolled input ' +
14711471
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
14721472
' in input (at **)',
@@ -1480,8 +1480,8 @@ describe('ReactDOMInput', () => {
14801480
ReactDOM.render(<input type="radio" checked={true} />, container),
14811481
).toErrorDev(
14821482
'Warning: A component is changing an uncontrolled input to be controlled. ' +
1483-
'This is likely caused by the value changing from a defined to ' +
1484-
'undefined, which should not happen. ' +
1483+
'This is likely caused by the value changing from undefined to ' +
1484+
'a defined value, which should not happen. ' +
14851485
'Decide between using a controlled or uncontrolled input ' +
14861486
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
14871487
' in input (at **)',
@@ -1495,8 +1495,8 @@ describe('ReactDOMInput', () => {
14951495
ReactDOM.render(<input type="radio" checked={true} />, container),
14961496
).toErrorDev(
14971497
'Warning: A component is changing an uncontrolled input to be controlled. ' +
1498-
'This is likely caused by the value changing from a defined to ' +
1499-
'undefined, which should not happen. ' +
1498+
'This is likely caused by the value changing from undefined to ' +
1499+
'a defined value, which should not happen. ' +
15001500
'Decide between using a controlled or uncontrolled input ' +
15011501
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
15021502
' in input (at **)',
@@ -1548,8 +1548,8 @@ describe('ReactDOMInput', () => {
15481548
ReactDOM.render(<input type="radio" value="value" />, container),
15491549
).toErrorDev(
15501550
'Warning: A component is changing a controlled input to be uncontrolled. ' +
1551-
'This is likely caused by the value changing from undefined to ' +
1552-
'a defined value, which should not happen. ' +
1551+
'This is likely caused by the value changing from a defined to ' +
1552+
'undefined, which should not happen. ' +
15531553
'Decide between using a controlled or uncontrolled input ' +
15541554
'element for the lifetime of the component. More info: https://fb.me/react-controlled-components\n' +
15551555
' in input (at **)',

0 commit comments

Comments
 (0)