From 107d36c8512cd6b72d4c3fd7d6aad84bb62c071e Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 11 Jul 2017 13:33:29 +0430 Subject: [PATCH] tests: update module fixture --- test/fixtures/module/modules/basic/reverse.js | 2 ++ test/fixtures/module/router.js | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/test/fixtures/module/modules/basic/reverse.js b/test/fixtures/module/modules/basic/reverse.js index 39e01fba3b..5955969033 100755 --- a/test/fixtures/module/modules/basic/reverse.js +++ b/test/fixtures/module/modules/basic/reverse.js @@ -7,3 +7,5 @@ function $reverseStr (str) { } Vue.prototype.$reverseStr = $reverseStr + +export default undefined diff --git a/test/fixtures/module/router.js b/test/fixtures/module/router.js index 6fe636aeab..4856380eca 100644 --- a/test/fixtures/module/router.js +++ b/test/fixtures/module/router.js @@ -3,18 +3,21 @@ import Router from 'vue-router' Vue.use(Router) +const indexPage = () => import('~/views/index.vue').then(m => m.default || m) +const aboutPage = () => import('~/views/about.vue').then(m => m.default || m) + export function createRouter () { return new Router({ mode: 'history', routes: [ { path: '/', - component: require('~/views/index.vue').default, + component: indexPage, name: 'index' }, { path: '/about', - component: require('~/views/about.vue').default, + component: aboutPage, name: 'about' } ]