fix(core): update

This commit is contained in:
Philipp Kunz 2022-02-02 04:26:22 +01:00
parent 6a43243a3b
commit b147de4713

View File

@ -187,13 +187,14 @@ export class Assertion {
public toContain(itemArg: any) {
return this.runCheck(() => {
const result = this.baseReference instanceof Array && this.baseReference.find(itemArg2 => {
itemArg === itemArg2;
})
const result =
this.baseReference instanceof Array &&
this.baseReference.find((itemArg2) => {
itemArg === itemArg2;
});
if (!result) {
throw new Error(`${this.baseReference} is not contain ${itemArg}`);
}
});
}
}