]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: router reuse
authorEduardo San Martin Morote <posva13@gmail.com>
Sat, 18 Oct 2025 05:40:56 +0000 (07:40 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Sat, 18 Oct 2025 05:40:56 +0000 (07:40 +0200)
packages/router/__tests__/router.spec.ts

index 1f4431ec77509d9bc17b9179c22ea582e11f4367..dee6e8fbae8092e6c9d19d356f645c90c298f431 100644 (file)
@@ -833,10 +833,9 @@ describe('Router', () => {
     })
 
     it('allows a redirect with children', async () => {
-      const history = createMemoryHistory()
-      const router = createRouter({
-        history,
+      const { router } = await newRouter({
         routes: [
+          { path: '/', component: components.Home },
           {
             path: '/parent',
             redirect: { name: 'child' },