fix(core): update
This commit is contained in:
parent
6a43243a3b
commit
b147de4713
@ -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}`);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user