From 8e047042e403481c7e8ecce1f995e8bdedd054cf Mon Sep 17 00:00:00 2001 From: cipchk Date: Thu, 18 Jan 2024 16:32:37 +0800 Subject: [PATCH] chore: fix lint --- packages/abc/st/test/base.spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/abc/st/test/base.spec.ts b/packages/abc/st/test/base.spec.ts index c202db74e..51c8a1012 100644 --- a/packages/abc/st/test/base.spec.ts +++ b/packages/abc/st/test/base.spec.ts @@ -265,9 +265,7 @@ export class PageObject { expectData(row: number, path: string, valule: NzSafeAny, options?: { message?: string }): this { const ret = deepGet(this.comp._data[row - 1], path); if (options?.message != null) { - expect(ret) - .withContext(options?.message) - .toBe(valule); + expect(ret).withContext(options.message).toBe(valule); } else { expect(ret).toBe(valule); }