From a3b7ae8bfd002dd7a38c6858e592ecca6771bdca Mon Sep 17 00:00:00 2001 From: Adam Bowles Date: Wed, 10 May 2017 14:23:48 +0100 Subject: [PATCH] Corrrect spelling error ("supplid" -> "supplied") --- __tests__/PropTypesDevelopmentReact15.js | 4 ++-- __tests__/PropTypesDevelopmentStandalone-test.js | 4 ++-- factoryWithTypeCheckers.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/__tests__/PropTypesDevelopmentReact15.js b/__tests__/PropTypesDevelopmentReact15.js index 00c1bd6..e98a7bf 100644 --- a/__tests__/PropTypesDevelopmentReact15.js +++ b/__tests__/PropTypesDevelopmentReact15.js @@ -871,12 +871,12 @@ describe('PropTypesDevelopmentReact15', () => { PropTypes.oneOfType([type]); expect(console.error).toHaveBeenCalled(); expect(console.error.calls.argsFor(0)[0]).toContain( - 'Invalid argument supplid to oneOfType. Expected an array of check functions, ' + + 'Invalid argument supplied to oneOfType. Expected an array of check functions, ' + 'but received ' + expected[i] + ' at index 0.' ); console.error.calls.reset(); } - + typeCheckPass(PropTypes.oneOf(PropTypes.string, PropTypes.number), []); }); diff --git a/__tests__/PropTypesDevelopmentStandalone-test.js b/__tests__/PropTypesDevelopmentStandalone-test.js index 493ba2b..9684d56 100644 --- a/__tests__/PropTypesDevelopmentStandalone-test.js +++ b/__tests__/PropTypesDevelopmentStandalone-test.js @@ -867,12 +867,12 @@ describe('PropTypesDevelopmentStandalone', () => { PropTypes.oneOfType([type]); expect(console.error).toHaveBeenCalled(); expect(console.error.calls.argsFor(0)[0]).toContain( - 'Invalid argument supplid to oneOfType. Expected an array of check functions, ' + + 'Invalid argument supplied to oneOfType. Expected an array of check functions, ' + 'but received ' + expected[i] + ' at index 0.' ); console.error.calls.reset(); } - + typeCheckPass(PropTypes.oneOf(PropTypes.string, PropTypes.number), []); }); diff --git a/factoryWithTypeCheckers.js b/factoryWithTypeCheckers.js index b3246b0..4da647e 100644 --- a/factoryWithTypeCheckers.js +++ b/factoryWithTypeCheckers.js @@ -325,7 +325,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) { if (typeof checker !== 'function') { warning( false, - 'Invalid argument supplid to oneOfType. Expected an array of check functions, but ' + + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received %s at index %s.', getPostfixForTypeWarning(checker), i