Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #47 from adambowles/master
Browse files Browse the repository at this point in the history
Corrrect spelling error ("supplid" -> "supplied")
  • Loading branch information
gaearon authored May 12, 2017
2 parents 9c2c541 + a3b7ae8 commit f2cf875
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions __tests__/PropTypesDevelopmentReact15.js
Original file line number Diff line number Diff line change
Expand Up @@ -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), []);
});

Expand Down
4 changes: 2 additions & 2 deletions __tests__/PropTypesDevelopmentStandalone-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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), []);
});

Expand Down
2 changes: 1 addition & 1 deletion factoryWithTypeCheckers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2cf875

Please sign in to comment.