get-app.test.js 388 字节
Newer Older
DCloud-WZF's avatar
DCloud-WZF 已提交
1 2 3 4 5 6
const PAGE_PATH = '/pages/API/get-app/get-app'

describe('getApp', () => {
  it('getApp', async () => {
    const page = await program.navigateTo(PAGE_PATH)
    await page.waitFor(1000)
DCloud-WZF's avatar
DCloud-WZF 已提交
7 8 9 10
    const oldData = await page.data()
    await page.callMethod('_increasetLifeCycleNum')
    const newData = await page.data()
    expect(newData.lifeCycleNum - oldData.lifeCycleNum).toBe(100)
DCloud-WZF's avatar
DCloud-WZF 已提交
11 12
  })
})