Lines Matching refs:expected
71345 function oneOf(expected, thing) {
71346 if (Array.isArray(expected)) {
71347 var len = expected.length;
71348 expected = expected.map(function (i) {
71353 …return "one of ".concat(thing, " ").concat(expected.slice(0, len - 1).join(', '), ", or ") + expec…
71355 return "one of ".concat(thing, " ").concat(expected[0], " or ").concat(expected[1]);
71357 return "of ".concat(thing, " ").concat(expected[0]);
71360 return "of ".concat(thing, " ").concat(String(expected));
71394 createErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) {
71398 if (typeof expected === 'string' && startsWith(expected, 'not ')) {
71400 expected = expected.replace(/^not /, '');
71409 msg = "The ".concat(name, " ").concat(determiner, " ").concat(oneOf(expected, 'type'));
71412 … \"".concat(name, "\" ").concat(type, " ").concat(determiner, " ").concat(oneOf(expected, 'type'));