]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: add missing options
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 30 Apr 2020 15:38:54 +0000 (17:38 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 30 Apr 2020 15:38:54 +0000 (17:38 +0200)
__tests__/RouterLink.spec.ts

index caadb7dd2f9b469ff3dc75103f34ef7cab003d0a..c020821537b8903df65b4ff0e6b82623def93594 100644 (file)
@@ -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<RouterOptions>,
     resolve: jest.fn(),
     push: jest.fn().mockResolvedValue(resolvedLocation),
   }