Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
assertEquals(expected, actual, message = '') {
if (!concordance.compare(expected, actual).pass) {
throw new AssertionError({message : `${message}\n${concordance.diff(expected, actual)}`});
}
}
assertSame(expected, actual, message = '') {
if (!Object.is(expected, actual)) {
let defaultMessage = `Expected value is not the same than actual`;
throw new AssertionError({message: `${message || defaultMessage}\n${concordance.diff(expected, actual)}`});
}
}