提交 fca3d4df 编写于 作者: 杜庆泉's avatar 杜庆泉

修改 电量测试示例

上级 c9090831
......@@ -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 () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册