mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
test: remove /old-fetch warning check
a test to ensure legacy works TBD
This commit is contained in:
parent
f1e2362456
commit
9e69f60d38
@ -70,14 +70,6 @@ describe('basic browser', () => {
|
||||
expect(await page.$text('pre')).toContain('kevinmarrec')
|
||||
})
|
||||
|
||||
test('/old-fetch', async () => {
|
||||
const msg = new Promise(resolve =>
|
||||
page.on('console', msg => resolve(msg.text()))
|
||||
)
|
||||
await page.nuxt.navigate('/old-fetch')
|
||||
expect(await msg).toBe('fetch(context) has been deprecated, please use middleware(context)')
|
||||
})
|
||||
|
||||
test('ssr: /fetch-client', async () => {
|
||||
const page = await browser.page(url('/fetch-client'))
|
||||
expect(await page.$text('p')).toContain('Fetching...')
|
||||
|
Loading…
Reference in New Issue
Block a user