From b147de47133cf395db0355fec18dc13681ddc024 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Wed, 2 Feb 2022 04:26:22 +0100 Subject: [PATCH] fix(core): update --- ts/smartexpect.classes.assertion.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ts/smartexpect.classes.assertion.ts b/ts/smartexpect.classes.assertion.ts index a18792b..aab833e 100644 --- a/ts/smartexpect.classes.assertion.ts +++ b/ts/smartexpect.classes.assertion.ts @@ -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}`); } }); - } }