From: Eduardo San Martin Morote Date: Sun, 1 Mar 2020 18:37:57 +0000 (+0100) Subject: test: add missing route X-Git-Tag: v4.0.0-alpha.2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76aa6c63d57ac9b4b7278b3853f66dfc864daea5;p=thirdparty%2Fvuejs%2Frouter.git test: add missing route --- 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)