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

Corrrect spelling error ("supplid" -> "supplied") #47

Merged
merged 1 commit into from
May 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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