mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
test(vue): formatting error in test (#24897)
This commit is contained in:
@ -229,11 +229,13 @@ describe('Routing', () => {
|
|||||||
routes: [
|
routes: [
|
||||||
{ path: '/', redirect: '/tabs/tab1' },
|
{ path: '/', redirect: '/tabs/tab1' },
|
||||||
{ path: '/parent', component: Parent },
|
{ path: '/parent', component: Parent },
|
||||||
{ path: '/tabs/', component: Tabs, children: [
|
{
|
||||||
|
path: '/tabs/', component: Tabs, children: [
|
||||||
{ path: '/', redirect: 'tab1' },
|
{ path: '/', redirect: 'tab1' },
|
||||||
{ path: 'tab1', component: Tab1 },
|
{ path: 'tab1', component: Tab1 },
|
||||||
{ path: 'tab2', component: Tab2 }
|
{ path: 'tab2', component: Tab2 }
|
||||||
]}
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -474,7 +476,7 @@ describe('Routing', () => {
|
|||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(process.env.BASE_URL),
|
history: createWebHistory(process.env.BASE_URL),
|
||||||
routes: [
|
routes: [
|
||||||
{ path: '/', component: Page }
|
{ path: '/', component: Page },
|
||||||
{ path: '/page2', component: Page2 }
|
{ path: '/page2', component: Page2 }
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
@ -527,7 +529,7 @@ describe('Routing', () => {
|
|||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(process.env.BASE_URL),
|
history: createWebHistory(process.env.BASE_URL),
|
||||||
routes: [
|
routes: [
|
||||||
{ path: '/', component: Page }
|
{ path: '/', component: Page },
|
||||||
{ path: '/page2', component: Page2 },
|
{ path: '/page2', component: Page2 },
|
||||||
{ path: '/page3', component: Page3 },
|
{ path: '/page3', component: Page3 },
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user