calendar.test.js 506 字节
Newer Older
H
hdx 已提交
1 2 3
const PAGE_PATH = '/pages/template/calendar/calendar'

describe('calendar', () => {
雪洛's avatar
雪洛 已提交
4 5 6 7 8 9
  if (process.env.uniTestPlatformInfo.indexOf('web') > -1 || process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true') {
    it('dummyTest', () => {
      expect(1).toBe(1)
    })
    return
  }
H
hdx 已提交
10 11 12 13 14 15 16 17 18 19
  let page
  beforeAll(async () => {
    page = await program.reLaunch(PAGE_PATH)
    await page.waitFor(500)
  })
  it('width', async () => {
    const pageData = await page.data()
    expect(pageData.testWidth > 0).toBe(true)
  })
})