From ec51cb9afb04d83ba066ff65d288c438ba9bbfff Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 13 Mar 2020 16:18:45 +0100 Subject: [PATCH] test: update tests fixtures --- __tests__/__snapshots__/RouterLink.spec.ts.snap | 2 +- __tests__/matcher/records.spec.ts | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) 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: {}, -- 2.47.3