Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
undefined,
options
),
`${(0, _jestMatcherUtils.RECEIVED_COLOR)(
'received'
)} value must have a length property whose value must be a number`,
(0, _jestMatcherUtils.printWithType)(
'Received',
received,
_jestMatcherUtils.printReceived
)
)
);
}
(0, _jestMatcherUtils.ensureExpectedIsNonNegativeInteger)(
expected,
matcherName,
options
);
const pass = received.length === expected;
const message = () => {
const labelExpected = 'Expected length';
const labelReceivedLength = 'Received length';
const labelReceivedValue = `Received ${(0, _jestGetType.default)(
received
)}`;
const printLabel = (0, _jestMatcherUtils.getLabelPrinter)(
labelExpected,
labelReceivedLength,
labelReceivedValue
undefined,
options
),
`${(0, _jestMatcherUtils.RECEIVED_COLOR)(
'received'
)} value must have a length property whose value must be a number`,
(0, _jestMatcherUtils.printWithType)(
'Received',
received,
_jestMatcherUtils.printReceived
)
)
);
}
(0, _jestMatcherUtils.ensureExpectedIsNonNegativeInteger)(
expected,
matcherName,
options
);
const pass = received.length === expected;
const message = () => {
const labelExpected = 'Expected length';
const labelReceivedLength = 'Received length';
const labelReceivedValue = `Received ${(0, _jestGetType.default)(
received
)}`;
const printLabel = (0, _jestMatcherUtils.getLabelPrinter)(
labelExpected,
labelReceivedLength,
labelReceivedValue