Add test with virtualConsole

This commit is contained in:
Sébastien Chopin 2017-01-28 00:42:42 +01:00
parent 423f52f35d
commit a76ca34555

View File

@ -43,7 +43,7 @@ test('/stateful', async t => {
})
test('/head', async t => {
const window = await nuxt.renderAndGetWindow(url('/head'))
const window = await nuxt.renderAndGetWindow(url('/head'), { virtualConsole: true })
const html = window.document.body.innerHTML
const metas = window.document.getElementsByTagName('meta')
t.is(window.document.title, 'My title')