提交 88ded457 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test(getLocation): 优化代码,规避小程序平台

上级 7f6d6836
......@@ -4,15 +4,15 @@ const isAndroid = platformInfo.startsWith('android')
const isIos = platformInfo.startsWith('ios')
const isApp = isAndroid || isIos
const isWeb = platformInfo.startsWith('web')
const isMP = platformInfo.startsWith('mp')
describe("get-location", () => {
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
const isMP = platformInfo.startsWith('mp')
if(isMP) {
// 微信上会有权限弹框,暂时屏蔽测试
it('not support', async () => {
expect(1).toBe(1)
})
return
}
beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册