From c5672b02cee7363950145567acbd584fde0b36cc Mon Sep 17 00:00:00 2001 From: hdx Date: Wed, 13 Dec 2023 14:43:21 +0800 Subject: [PATCH] =?UTF-8?q?mixin-datacom:=20=E4=BF=AE=E5=A4=8D=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8C=96=E6=B5=8B=E8=AF=95=E5=88=A4=E5=AE=9A=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/mixin-datacom/mixin-datacom.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/component/mixin-datacom/mixin-datacom.test.js b/pages/component/mixin-datacom/mixin-datacom.test.js index eacca4bf..f70ed01b 100644 --- a/pages/component/mixin-datacom/mixin-datacom.test.js +++ b/pages/component/mixin-datacom/mixin-datacom.test.js @@ -8,7 +8,7 @@ describe('mixin-datacom', () => { }) it('mixinDatacomGet', async () => { const datacom = await page.$('.datacom') - const childCount = await datacom.$$('.list-item') - expect(childCount > 0).toBe(true) + const children = await datacom.$$('.list-item') + expect(children.length > 0).toBe(true) }) }) -- GitLab