code coverage

This commit is contained in:
Pooya Parsa 2017-06-16 18:13:45 +04:30
parent 0453308e5e
commit 2df044664a
2 changed files with 3 additions and 4 deletions

View File

@ -44,7 +44,7 @@
},
"nyc": {
"exclude": [
"/index.js"
"index.js"
]
},
"scripts": {

View File

@ -306,8 +306,7 @@ export default class Renderer extends Tapable {
if (!jsdom) {
try {
jsdom = require('jsdom')
} catch (e) {
// istanbul ignore next
} catch (e) /* istanbul ignore next */{
console.error('Fail when calling nuxt.renderAndGetWindow(url)') // eslint-disable-line no-console
console.error('jsdom module is not installed') // eslint-disable-line no-console
console.error('Please install jsdom with: npm install --save-dev jsdom') // eslint-disable-line no-console