Update coverage

This commit is contained in:
Sebastien Chopin 2017-06-02 18:09:20 +02:00
parent 2b80bc3e5c
commit 5682eef2a5

View File

@ -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
}