From: Eduardo San Martin Morote Date: Thu, 30 Apr 2020 15:38:54 +0000 (+0200) Subject: test: add missing options X-Git-Tag: v4.0.0-alpha.10~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7ed284fbb0acf01fe51e04129da359cd1c18bf0;p=thirdparty%2Fvuejs%2Frouter.git test: add missing options --- diff --git a/__tests__/RouterLink.spec.ts b/__tests__/RouterLink.spec.ts index caadb7dd..c0208215 100644 --- a/__tests__/RouterLink.spec.ts +++ b/__tests__/RouterLink.spec.ts @@ -8,7 +8,7 @@ import { MatcherLocationRaw, RouteLocationNormalized, } from '../src/types' -import { createMemoryHistory } from '../src' +import { createMemoryHistory, RouterOptions } from '../src' import { mount, createMockedRoute } from './mount' import { nextTick } from 'vue' import { RouteRecordNormalized } from '../src/matcher/types' @@ -334,6 +334,7 @@ async function factory( createHref(to: RouteLocationNormalized): string { return this.history.base + to.fullPath }, + options: {} as Partial, resolve: jest.fn(), push: jest.fn().mockResolvedValue(resolvedLocation), }