From 65f2419052f3f9a49405f2d1f291335159d6acd6 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 8 Dec 2017 12:34:08 +0330 Subject: [PATCH] coverage --- lib/builder/webpack/warnfix-plugin.js | 3 +-- lib/core/renderer.js | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/builder/webpack/warnfix-plugin.js b/lib/builder/webpack/warnfix-plugin.js index 57a4d1f0bb..63ef48ea29 100644 --- a/lib/builder/webpack/warnfix-plugin.js +++ b/lib/builder/webpack/warnfix-plugin.js @@ -1,8 +1,7 @@ export default class WarnFixPlugin { - apply(compiler) { + apply(compiler) /* istanbul ignore next */ { compiler.plugin('done', stats => { stats.compilation.warnings = stats.compilation.warnings.filter(warn => { - /* istanbul ignore next */ if (warn.name === 'ModuleDependencyWarning' && warn.message.includes(`export 'default'`) && warn.message.indexOf('nuxt_plugin_') === 0) { diff --git a/lib/core/renderer.js b/lib/core/renderer.js index a4d0987b8d..abfdee4fb5 100644 --- a/lib/core/renderer.js +++ b/lib/core/renderer.js @@ -126,6 +126,7 @@ export default class Renderer { get isResourcesAvailable() { // Required for both + /* istanbul ignore if */ if (!this.resources.clientManifest) { return false } @@ -417,9 +418,11 @@ export default class Renderer { if (line) { frame.lineNumber = line } + /* istanbul ignore if */ if (column) { frame.columnNumber = column } + /* istanbul ignore if */ if (name) { frame.functionName = name }