Skip to content

Commit 4c9b69e

Browse files
committed
test: router reuse
1 parent 159ba17 commit 4c9b69e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/router/__tests__/router.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,10 +833,9 @@ describe('Router', () => {
833833
})
834834

835835
it('allows a redirect with children', async () => {
836-
const history = createMemoryHistory()
837-
const router = createRouter({
838-
history,
836+
const { router } = await newRouter({
839837
routes: [
838+
{ path: '/', component: components.Home },
840839
{
841840
path: '/parent',
842841
redirect: { name: 'child' },

0 commit comments

Comments
 (0)