From f7ed284fbb0acf01fe51e04129da359cd1c18bf0 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 30 Apr 2020 17:38:54 +0200 Subject: [PATCH] test: add missing options --- __tests__/RouterLink.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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), } -- 2.47.2