]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: update tests fixtures
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 13 Mar 2020 15:18:45 +0000 (16:18 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 13 Mar 2020 15:18:45 +0000 (16:18 +0100)
__tests__/__snapshots__/RouterLink.spec.ts.snap
__tests__/matcher/records.spec.ts

index 459b6f137e9bfa3a8cd01deaeb9c40b9f1f9ff42..2052a2fcebaef95f5a9126334f72414e5ea92100 100644 (file)
@@ -1,3 +1,3 @@
 // Jest Snapshot v1, https://goo.gl/fbAQLP
 
-exports[`RouterLink v-slot provides information on v-slot 1`] = `"<a class=\\"router-link-active router-link-exact-active\\" href=\\"/home\\"> route: {\\"fullPath\\":\\"/home\\",\\"path\\":\\"/home\\",\\"params\\":{},\\"meta\\":{},\\"query\\":{},\\"hash\\":\\"\\",\\"matched\\":[{}]} href: \\"/home\\" isActive: \\"true\\" isExactActive: \\"true\\" </a>"`;
+exports[`RouterLink v-slot provides information on v-slot 1`] = `"<a aria-current=\\"page\\" href=\\"/home\\" class=\\"router-link-active router-link-exact-active\\"> route: {\\"fullPath\\":\\"/home\\",\\"path\\":\\"/home\\",\\"params\\":{},\\"meta\\":{},\\"query\\":{},\\"hash\\":\\"\\",\\"matched\\":[{}]} href: \\"/home\\" isActive: \\"true\\" isExactActive: \\"true\\" </a>"`;
index 1d5daac5e1e176590b2041f86bdab92a83715e22..0c90225d9ab26b7dd2baa71bff80778889ae29ea 100644 (file)
@@ -8,7 +8,8 @@ describe('normalizeRouteRecord', () => {
     })
     expect(record).toEqual({
       beforeEnter: undefined,
-      children: undefined,
+      children: [],
+      aliasOf: undefined,
       components: { default: {} },
       leaveGuards: [],
       meta: {},
@@ -48,7 +49,8 @@ describe('normalizeRouteRecord', () => {
 
     expect(record).toEqual({
       beforeEnter: expect.any(Function),
-      children: undefined,
+      children: [],
+      aliasOf: undefined,
       components: {},
       leaveGuards: [],
       meta: { foo: true },
@@ -85,7 +87,8 @@ describe('normalizeRouteRecord', () => {
     })
     expect(record).toEqual({
       beforeEnter: expect.any(Function),
-      children: undefined,
+      children: [],
+      aliasOf: undefined,
       components: {},
       leaveGuards: [],
       meta: {},