From fca3d4dfed36902cdb0fb0a0e71cb02c53a81059 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Sun, 28 Apr 2024 16:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E7=94=B5=E9=87=8F?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/get-battery-info/get-battery-info.test.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pages/API/get-battery-info/get-battery-info.test.js b/pages/API/get-battery-info/get-battery-info.test.js index fd832b46..6db08e0d 100644 --- a/pages/API/get-battery-info/get-battery-info.test.js +++ b/pages/API/get-battery-info/get-battery-info.test.js @@ -7,12 +7,7 @@ describe('ExtApi-GetBatteryInfo', () => { }) return } - if (process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios')) { - it('dummyTest', () => { - expect(1).toBe(1) - }) - return - } + let page; let res; @@ -22,7 +17,7 @@ describe('ExtApi-GetBatteryInfo', () => { beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) await page.waitFor(600); - res = await uni.getBatteryInfo(); + res = await page.data(); }); it('Check properties', async () => { -- GitLab