More wordsmithing

This commit is contained in:
Brian Vaughn
2017-04-11 13:59:55 -07:00
parent d1348b9374
commit 7dbc3e7b36
2 changed files with 10 additions and 12 deletions
+5 -6
View File
@@ -106,8 +106,8 @@ if (__DEV__) {
get() { get() {
warning( warning(
warnedForCheckPropTypes, warnedForCheckPropTypes,
'checkPropTypes have been moved to a separate package. ' + 'checkPropTypes has been moved to a separate package. ' +
'Accessing React.checkPropTypes is no longer supported, ' + 'Accessing React.checkPropTypes is no longer supported ' +
'and will be removed completely in React 16. ' + 'and will be removed completely in React 16. ' +
'Use the prop-types package on npm instead. ' + 'Use the prop-types package on npm instead. ' +
'(https://fb.me/migrating-from-react-proptypes)', '(https://fb.me/migrating-from-react-proptypes)',
@@ -123,8 +123,7 @@ if (__DEV__) {
warnedForCreateClass, warnedForCreateClass,
'React.createClass is no longer supported. Use a plain JavaScript ' + 'React.createClass is no longer supported. Use a plain JavaScript ' +
"class instead. If you're not yet ready to migrate, " + "class instead. If you're not yet ready to migrate, " +
'create-react-class is available on npm as a temporary, ' + 'create-react-class is available on npm as a drop-in replacement. ' +
'drop-in replacement. ' +
'(https://fb.me/migrating-from-react-create-class)', '(https://fb.me/migrating-from-react-create-class)',
); );
warnedForCreateClass = true; warnedForCreateClass = true;
@@ -136,8 +135,8 @@ if (__DEV__) {
get() { get() {
warning( warning(
warnedForPropTypes, warnedForPropTypes,
'PropTypes have been moved to a separate package. ' + 'PropTypes has been moved to a separate package. ' +
'Accessing React.PropTypes is no longer supported, ' + 'Accessing React.PropTypes is no longer supported ' +
'and will be removed completely in React 16. ' + 'and will be removed completely in React 16. ' +
'Use the prop-types package on npm instead. ' + 'Use the prop-types package on npm instead. ' +
'(https://fb.me/migrating-from-react-proptypes)', '(https://fb.me/migrating-from-react-proptypes)',
+5 -6
View File
@@ -37,8 +37,7 @@ describe('React', () => {
expectDev(console.error.calls.argsFor(0)[0]).toContain( expectDev(console.error.calls.argsFor(0)[0]).toContain(
'React.createClass is no longer supported. Use a plain JavaScript ' + 'React.createClass is no longer supported. Use a plain JavaScript ' +
"class instead. If you're not yet ready to migrate, " + "class instead. If you're not yet ready to migrate, " +
'create-react-class is available on npm as a temporary, ' + 'create-react-class is available on npm as a drop-in replacement. ' +
'drop-in replacement. ' +
'(https://fb.me/migrating-from-react-create-class)', '(https://fb.me/migrating-from-react-create-class)',
); );
}); });
@@ -50,8 +49,8 @@ describe('React', () => {
expect(PropTypes).not.toBe(undefined); expect(PropTypes).not.toBe(undefined);
expectDev(console.error.calls.count()).toBe(1); expectDev(console.error.calls.count()).toBe(1);
expectDev(console.error.calls.argsFor(0)[0]).toContain( expectDev(console.error.calls.argsFor(0)[0]).toContain(
'PropTypes have been moved to a separate package. ' + 'PropTypes has been moved to a separate package. ' +
'Accessing React.PropTypes is no longer supported, ' + 'Accessing React.PropTypes is no longer supported ' +
'and will be removed completely in React 16. ' + 'and will be removed completely in React 16. ' +
'Use the prop-types package on npm instead. ' + 'Use the prop-types package on npm instead. ' +
'(https://fb.me/migrating-from-react-proptypes)', '(https://fb.me/migrating-from-react-proptypes)',
@@ -65,8 +64,8 @@ describe('React', () => {
expect(checkPropTypes).not.toBe(undefined); expect(checkPropTypes).not.toBe(undefined);
expectDev(console.error.calls.count()).toBe(1); expectDev(console.error.calls.count()).toBe(1);
expectDev(console.error.calls.argsFor(0)[0]).toContain( expectDev(console.error.calls.argsFor(0)[0]).toContain(
'checkPropTypes have been moved to a separate package. ' + 'checkPropTypes has been moved to a separate package. ' +
'Accessing React.checkPropTypes is no longer supported, ' + 'Accessing React.checkPropTypes is no longer supported ' +
'and will be removed completely in React 16. ' + 'and will be removed completely in React 16. ' +
'Use the prop-types package on npm instead. ' + 'Use the prop-types package on npm instead. ' +
'(https://fb.me/migrating-from-react-proptypes)', '(https://fb.me/migrating-from-react-proptypes)',