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
) +
'\n\n' +
`${printLabel(labelExpected)}${isNot ? 'not ' : ''}${(0,
_jestMatcherUtils.printExpected)(expected)}\n` +
`${printLabel(labelReceived)}${isNot ? ' ' : ''}${
isNot && Array.isArray(received)
? (0, _print.printReceivedArrayContainExpectedItem)(received, index)
: (0, _jestMatcherUtils.printReceived)(received)
}` +
(!isNot &&
indexable.findIndex(item =>
(0, _jasmineUtils.equals)(item, expected, [_utils.iterableEquality])
) !== -1
? `\n\n${_jestMatcherUtils.SUGGEST_TO_CONTAIN_EQUAL}`
: '')
);
};
undefined,
options
) +
'\n\n' +
`${printLabel(labelExpected)}${isNot ? 'not ' : ''}${(0,
_jestMatcherUtils.printExpected)(expected)}\n` +
`${printLabel(labelReceived)}${isNot ? ' ' : ''}${
isNot && Array.isArray(received)
? (0, _print.printReceivedArrayContainExpectedItem)(received, index)
: (0, _jestMatcherUtils.printReceived)(received)
}` +
(!isNot &&
indexable.findIndex(item =>
(0, _jasmineUtils.equals)(item, expected, [_utils.iterableEquality])
) !== -1
? `\n\n${_jestMatcherUtils.SUGGEST_TO_CONTAIN_EQUAL}`
: '')
);
};