fix(core): update
This commit is contained in:
@ -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}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,9 @@ export {
|
||||
|
||||
// third party scope
|
||||
import { expect } from 'chai';
|
||||
import fastDeepEqual from 'fast-deep-equal';
|
||||
|
||||
export {
|
||||
fastDeepEqual,
|
||||
expect
|
||||
}
|
Reference in New Issue
Block a user