@samitouri / QOS-React / commits / a10665cac0

Fix "vice versa" in warning message

The phrase is 2 words, not 1.

Paul O’Shannessy committed Apr 6, 2016 at 15:51 UTC a10665cac089201c41b4413935f2a1103717ceb4
2 files changed +11 -11
src/renderers/dom/client/wrappers/ReactDOMInput.js
+2 -2
@@ -169,7 +169,7 @@ var ReactDOMInput = {
169 warning(
170 false,
171 '%s is changing a uncontrolled input of type %s to be controlled. ' +
172 - 'Input elements should not switch from uncontrolled to controlled (or viceversa). ' +
172 + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
173 'Decide between using a controlled or uncontrolled input ' +
174 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components',
175 owner && owner.getName() || 'A component',
@@ -185,7 +185,7 @@ var ReactDOMInput = {
185 warning(
186 false,
187 '%s is changing a controlled input of type %s to be uncontrolled. ' +
188 - 'Input elements should not switch from controlled to uncontrolled (or viceversa). ' +
188 + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +
189 'Decide between using a controlled or uncontrolled input ' +
190 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components',
191 owner && owner.getName() || 'A component',
src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js
+9 -9
@@ -461,7 +461,7 @@ describe('ReactDOMInput', function() {
461 expect(console.error.argsForCall.length).toBe(1);
462 expect(console.error.argsForCall[0][0]).toContain(
463 'A component is changing a controlled input of type text to be uncontrolled. ' +
464 - 'Input elements should not switch from controlled to uncontrolled (or viceversa). ' +
464 + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +
465 'Decide between using a controlled or uncontrolled input ' +
466 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'
467 );
@@ -475,7 +475,7 @@ describe('ReactDOMInput', function() {
475 expect(console.error.argsForCall.length).toBe(1);
476 expect(console.error.argsForCall[0][0]).toContain(
477 'A component is changing a controlled input of type text to be uncontrolled. ' +
478 - 'Input elements should not switch from controlled to uncontrolled (or viceversa). ' +
478 + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +
479 'Decide between using a controlled or uncontrolled input ' +
480 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'
481 );
@@ -489,7 +489,7 @@ describe('ReactDOMInput', function() {
489 expect(console.error.argsForCall.length).toBe(1);
490 expect(console.error.argsForCall[0][0]).toContain(
491 'A component is changing a uncontrolled input of type text to be controlled. ' +
492 - 'Input elements should not switch from uncontrolled to controlled (or viceversa). ' +
492 + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
493 'Decide between using a controlled or uncontrolled input ' +
494 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'
495 );
@@ -503,7 +503,7 @@ describe('ReactDOMInput', function() {
503 expect(console.error.argsForCall.length).toBe(1);
504 expect(console.error.argsForCall[0][0]).toContain(
505 'A component is changing a controlled input of type checkbox to be uncontrolled. ' +
506 - 'Input elements should not switch from controlled to uncontrolled (or viceversa). ' +
506 + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +
507 'Decide between using a controlled or uncontrolled input ' +
508 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'
509 );
@@ -517,7 +517,7 @@ describe('ReactDOMInput', function() {
517 expect(console.error.argsForCall.length).toBe(1);
518 expect(console.error.argsForCall[0][0]).toContain(
519 'A component is changing a controlled input of type checkbox to be uncontrolled. ' +
520 - 'Input elements should not switch from controlled to uncontrolled (or viceversa). ' +
520 + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +
521 'Decide between using a controlled or uncontrolled input ' +
522 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'
523 );
@@ -531,7 +531,7 @@ describe('ReactDOMInput', function() {
531 expect(console.error.argsForCall.length).toBe(1);
532 expect(console.error.argsForCall[0][0]).toContain(
533 'A component is changing a uncontrolled input of type checkbox to be controlled. ' +
534 - 'Input elements should not switch from uncontrolled to controlled (or viceversa). ' +
534 + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
535 'Decide between using a controlled or uncontrolled input ' +
536 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'
537 );
@@ -545,7 +545,7 @@ describe('ReactDOMInput', function() {
545 expect(console.error.argsForCall.length).toBe(1);
546 expect(console.error.argsForCall[0][0]).toContain(
547 'A component is changing a controlled input of type radio to be uncontrolled. ' +
548 - 'Input elements should not switch from controlled to uncontrolled (or viceversa). ' +
548 + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +
549 'Decide between using a controlled or uncontrolled input ' +
550 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'
551 );
@@ -559,7 +559,7 @@ describe('ReactDOMInput', function() {
559 expect(console.error.argsForCall.length).toBe(1);
560 expect(console.error.argsForCall[0][0]).toContain(
561 'A component is changing a controlled input of type radio to be uncontrolled. ' +
562 - 'Input elements should not switch from controlled to uncontrolled (or viceversa). ' +
562 + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +
563 'Decide between using a controlled or uncontrolled input ' +
564 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'
565 );
@@ -573,7 +573,7 @@ describe('ReactDOMInput', function() {
573 expect(console.error.argsForCall.length).toBe(1);
574 expect(console.error.argsForCall[0][0]).toContain(
575 'A component is changing a uncontrolled input of type radio to be controlled. ' +
576 - 'Input elements should not switch from uncontrolled to controlled (or viceversa). ' +
576 + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
577 'Decide between using a controlled or uncontrolled input ' +
578 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components'
579 );