mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Add test with virtualConsole
This commit is contained in:
parent
423f52f35d
commit
a76ca34555
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user