native-view.test.js 502 字节
Newer Older
DCloud-WZF's avatar
DCloud-WZF 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
describe('native-view.uvue', () => {
  if (process.env.uniTestPlatformInfo.indexOf('web') > -1 || process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true') {
    it('object', () => {
      expect(1).toBe(1)
    })
    return
  }
  beforeAll(async () => {
    page = await program.reLaunch('/pages/component/native-view/native-view')
  });

  it('native-view检测init函数是否响应', async () => {
    await page.waitFor(600)
    const value = await page.data('isLoad')
    expect(value).toBe(true)
  })
})