cov: Ignore fallback conditions

This commit is contained in:
Sébastien Chopin 2018-01-08 16:02:18 +01:00
parent a447249db1
commit 8c04f5d8a6
2 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,7 @@ async function readSource(frame) {
}
// Fallback: use server bundle
/* istanbul ignore if */
if (!frame.contents) {
frame.contents = this.resources.serverBundle.files[frame.fileName]
}

View File

@ -42,6 +42,7 @@ module.exports = async function nuxtMiddleware(req, res, next) {
preloadFiles.forEach(({ file, asType, fileWithoutQuery, extension }) => {
// By default, we only preload scripts or css
/* istanbul ignore if */
if (!shouldPush && asType !== 'script' && asType !== 'style') {
return
}