inject.test.js 429 字节
Newer Older
DCloud-WZF's avatar
DCloud-WZF 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
const PAGE_PATH = '/pages/composition/inject/inject'

describe('inject', () => {
  it('basic', async () => {
    const page = await program.reLaunch(PAGE_PATH)
    await page.waitFor('view')
    const globalProvideMsgEl = await page.$('.global-provide-msg')
    const globalProvideMsgElText = await globalProvideMsgEl.text()
    expect(globalProvideMsgElText).toBe(
      'globalProvideMsg: global provide message'
    )
  })
})