mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
test: remove jsdom error log
This commit is contained in:
parent
ca1c2b2ff3
commit
cc75d844f8
@ -137,7 +137,10 @@ test('/redirect', async t => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test('/redirect -> check redirected source', async t => {
|
test('/redirect -> check redirected source', async t => {
|
||||||
|
// there are no transition properties in jsdom, ignore the error log
|
||||||
|
await interceptError()
|
||||||
const window = await nuxt.renderAndGetWindow(url('/redirect'))
|
const window = await nuxt.renderAndGetWindow(url('/redirect'))
|
||||||
|
release()
|
||||||
const html = window.document.body.innerHTML
|
const html = window.document.body.innerHTML
|
||||||
t.true(html.includes('<h1>Index page</h1>'))
|
t.true(html.includes('<h1>Index page</h1>'))
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user