fix(core): update

This commit is contained in:
2022-01-21 17:37:30 +01:00
parent 998827f1bf
commit 6f5ceacad2
5 changed files with 21 additions and 5 deletions

View File

@ -91,4 +91,13 @@ export class Assertion {
}
});
}
public toEqual(comparisonObject: any) {
return this.runCheck(() => {
const result = plugins.fastDeepEqual(this.baseReference, comparisonObject);
if (!result) {
throw new Error(`${this.baseReference} does not equal ${comparisonObject}`);
}
});
}
}

View File

@ -8,7 +8,9 @@ export {
// third party scope
import { expect } from 'chai';
import fastDeepEqual from 'fast-deep-equal';
export {
fastDeepEqual,
expect
}