chore: improve tests coverage

This commit is contained in:
Pooya Parsa 2017-11-24 19:14:07 +03:30
parent 2996160151
commit 79ce2ebc5d
No known key found for this signature in database
GPG Key ID: C3C77C557D8883CD
3 changed files with 8 additions and 2 deletions

View File

@ -332,8 +332,8 @@ export default class Builder {
options: this.options.loadingIndicator
})
} else {
// eslint-disable-next-line no-console
console.error(`Could not fetch loading indicator: ${this.options.loadingIndicator.name}`)
/* istanbul ignore next */
console.error(`Could not fetch loading indicator: ${this.options.loadingIndicator.name}`) // eslint-disable-line no-console
}
}
@ -365,6 +365,7 @@ export default class Builder {
dst
}))
} catch (err) {
/* istanbul ignore next */
throw new Error(`Could not compile template ${src}: ${err.message}`)
}
const path = r(this.options.buildDir, dst)

View File

@ -46,6 +46,7 @@ Options.from = function (_options) {
if (!Array.isArray(options.modulesDir)) {
options.modulesDir = [options.modulesDir]
}
/* istanbul ignore if */
if (!options.modulesDir.length) {
options.modulesDir = ['node_modules']
}
@ -157,6 +158,7 @@ Options.from = function (_options) {
_.defaultsDeep(options, modePreset)
// If no server-side rendering, add appear true transition
/* istanbul ignore if */
if (options.render.ssr === false && options.transition) {
options.transition.appear = true
}

View File

@ -1 +1,4 @@
// Custom plugin
// eslint-disable-next-line no-console
console.log('Test plugin!')