Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function assertDeepEqual(actual, expected) {
const result = matchers.toEqual(actual, expected);
if (!result.pass) {
const diff = diffTestMessages(result.actual, result.expected);
throw diff + '\n' + result.message();
}
}