fix(core): update
This commit is contained in:
parent
6a43243a3b
commit
b147de4713
@ -187,13 +187,14 @@ export class Assertion {
|
|||||||
|
|
||||||
public toContain(itemArg: any) {
|
public toContain(itemArg: any) {
|
||||||
return this.runCheck(() => {
|
return this.runCheck(() => {
|
||||||
const result = this.baseReference instanceof Array && this.baseReference.find(itemArg2 => {
|
const result =
|
||||||
itemArg === itemArg2;
|
this.baseReference instanceof Array &&
|
||||||
})
|
this.baseReference.find((itemArg2) => {
|
||||||
|
itemArg === itemArg2;
|
||||||
|
});
|
||||||
if (!result) {
|
if (!result) {
|
||||||
throw new Error(`${this.baseReference} is not contain ${itemArg}`);
|
throw new Error(`${this.baseReference} is not contain ${itemArg}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user