get-current-pages.test.js 348 字节
Newer Older
DCloud-WZF's avatar
DCloud-WZF 已提交
1 2 3 4 5 6 7 8 9 10 11
const PAGE_PATH = '/pages/API/get-current-pages/get-current-pages'

describe('getCurrentPages', () => {
  it('getCurrentPages', async () => {
    const page = await program.navigateTo(PAGE_PATH)
    await page.waitFor(1000)
    await page.callMethod('getCurrentPages')
    const data = await page.data()
    expect(data.checked).toBe(true)
  })
})