From 8c04f5d8a649fd57cdd505c7064ed06a6fd5636e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Mon, 8 Jan 2018 16:02:18 +0100 Subject: [PATCH] cov: Ignore fallback conditions --- lib/core/middleware/error.js | 1 + lib/core/middleware/nuxt.js | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/core/middleware/error.js b/lib/core/middleware/error.js index 1a6a322c58..063e5fa443 100644 --- a/lib/core/middleware/error.js +++ b/lib/core/middleware/error.js @@ -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] } diff --git a/lib/core/middleware/nuxt.js b/lib/core/middleware/nuxt.js index 9905b2f8c3..4e8ba2368b 100644 --- a/lib/core/middleware/nuxt.js +++ b/lib/core/middleware/nuxt.js @@ -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 }