From: Eduardo San Martin Morote Date: Fri, 13 Mar 2020 15:18:45 +0000 (+0100) Subject: test: update tests fixtures X-Git-Tag: v4.0.0-alpha.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec51cb9afb04d83ba066ff65d288c438ba9bbfff;p=thirdparty%2Fvuejs%2Frouter.git test: update tests fixtures --- diff --git a/__tests__/__snapshots__/RouterLink.spec.ts.snap b/__tests__/__snapshots__/RouterLink.spec.ts.snap index 459b6f13..2052a2fc 100644 --- a/__tests__/__snapshots__/RouterLink.spec.ts.snap +++ b/__tests__/__snapshots__/RouterLink.spec.ts.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`RouterLink v-slot provides information on v-slot 1`] = `" route: {\\"fullPath\\":\\"/home\\",\\"path\\":\\"/home\\",\\"params\\":{},\\"meta\\":{},\\"query\\":{},\\"hash\\":\\"\\",\\"matched\\":[{}]} href: \\"/home\\" isActive: \\"true\\" isExactActive: \\"true\\" "`; +exports[`RouterLink v-slot provides information on v-slot 1`] = `" route: {\\"fullPath\\":\\"/home\\",\\"path\\":\\"/home\\",\\"params\\":{},\\"meta\\":{},\\"query\\":{},\\"hash\\":\\"\\",\\"matched\\":[{}]} href: \\"/home\\" isActive: \\"true\\" isExactActive: \\"true\\" "`; diff --git a/__tests__/matcher/records.spec.ts b/__tests__/matcher/records.spec.ts index 1d5daac5..0c90225d 100644 --- a/__tests__/matcher/records.spec.ts +++ b/__tests__/matcher/records.spec.ts @@ -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: {},