test: remove jsdom error log

This commit is contained in:
Clark Du 2018-03-15 17:08:54 +08:00
parent ca1c2b2ff3
commit cc75d844f8
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -137,7 +137,10 @@ test('/redirect', 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'))
release()
const html = window.document.body.innerHTML
t.true(html.includes('<h1>Index page</h1>'))
})