mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +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)
|
||||
// If Nuxt could not be loaded (error from the server-side)
|
||||
const nuxtExists = window.document.body.innerHTML.includes('window.__NUXT__')
|
||||
/* istanbul ignore if */
|
||||
if (!nuxtExists) {
|
||||
/* istanbul ignore next */
|
||||
let error = new Error('Could not load the nuxt app')
|
||||
/* istanbul ignore next */
|
||||
error.body = window.document.body.innerHTML
|
||||
throw error
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user