mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 17:37:14 +00:00
Update coverage
This commit is contained in:
parent
2b80bc3e5c
commit
5682eef2a5
@ -172,9 +172,10 @@ export async function renderAndGetWindow (url, opts = {}) {
|
|||||||
const { window } = await jsdom.JSDOM.fromURL(url, options)
|
const { window } = await jsdom.JSDOM.fromURL(url, options)
|
||||||
// If Nuxt could not be loaded (error from the server-side)
|
// If Nuxt could not be loaded (error from the server-side)
|
||||||
const nuxtExists = window.document.body.innerHTML.includes('window.__NUXT__')
|
const nuxtExists = window.document.body.innerHTML.includes('window.__NUXT__')
|
||||||
/* istanbul ignore if */
|
|
||||||
if (!nuxtExists) {
|
if (!nuxtExists) {
|
||||||
|
/* istanbul ignore next */
|
||||||
let error = new Error('Could not load the nuxt app')
|
let error = new Error('Could not load the nuxt app')
|
||||||
|
/* istanbul ignore next */
|
||||||
error.body = window.document.body.innerHTML
|
error.body = window.document.body.innerHTML
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user