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}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user