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 fd832b4653b3802588b64f139dec5070b2ff37a0..6db08e0dd6c96174dd5a8605b2392637108742fb 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 () => {