From 76aa6c63d57ac9b4b7278b3853f66dfc864daea5 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Sun, 1 Mar 2020 19:37:57 +0100 Subject: [PATCH] test: add missing route --- __tests__/router.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/__tests__/router.spec.ts b/__tests__/router.spec.ts index d64dde5b..12c31b39 100644 --- a/__tests__/router.spec.ts +++ b/__tests__/router.spec.ts @@ -71,7 +71,10 @@ describe('Router', () => { }) it('can do initial navigation to /', async () => { - const router = createRouter({ history: createMemoryHistory(), routes: [] }) + const router = createRouter({ + history: createMemoryHistory(), + routes: [{ path: '/', component: components.Home }], + }) expect(router.currentRoute.value).toBe(START_LOCATION_NORMALIZED) await router.push('/') expect(router.currentRoute.value).not.toBe(START_LOCATION_NORMALIZED) -- 2.39.5