tests: update module fixture

This commit is contained in:
Pooya Parsa 2017-07-11 13:33:29 +04:30
parent a3be3cfe1b
commit 107d36c851
2 changed files with 7 additions and 2 deletions

View File

@ -7,3 +7,5 @@ function $reverseStr (str) {
}
Vue.prototype.$reverseStr = $reverseStr
export default undefined

View File

@ -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'
}
]