refactor: fix [TypeError: Cannot read property split of undefined] in tests

This commit is contained in:
Clark Du 2017-11-16 18:56:41 +08:00
parent fafe6d0a81
commit 2228bf4209
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9
3 changed files with 5 additions and 3 deletions

View File

@ -147,7 +147,7 @@ Options.from = function (_options) {
_.defaultsDeep(options, modePreset)
// If no server-side rendering, add appear true transition
if (options.render.ssr === false) {
if (options.render.ssr === false && options.transition) {
options.transition.appear = true
}

View File

@ -13,5 +13,6 @@ module.exports = {
},
bad: null,
'': true
}
},
transition: false
}

View File

@ -1,5 +1,6 @@
module.exports = {
rootDir: __dirname,
mode: 'spa',
dev: false
dev: false,
transition: false
}