]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: remove unused code
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 4 Feb 2020 18:11:58 +0000 (19:11 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 5 Feb 2020 13:08:29 +0000 (14:08 +0100)
__tests__/matcher/resolve.spec.ts

index 1a380614136d5b2e3af76045a88c58ca47db4dca..bb412d6a3d378c83ca7f3c0f1769fca4c02b13f9 100644 (file)
@@ -24,12 +24,7 @@ describe('Router Matcher', () => {
       start: MatcherLocationNormalized = START_LOCATION_NORMALIZED
     ) {
       record = Array.isArray(record) ? record : [record]
-      const matcher = createRouterMatcher(
-        record,
-        {},
-        v => v,
-        v => v
-      )
+      const matcher = createRouterMatcher(record, {})
 
       if (!('meta' in resolved)) {
         resolved.meta = record[0].meta || {}
@@ -387,12 +382,7 @@ describe('Router Matcher', () => {
           expected: MatcherLocationNormalized | MatcherLocationRedirect,
           currentLocation: MatcherLocationNormalized = START_LOCATION_NORMALIZED
         ) {
-          const matcher = createRouterMatcher(
-            records,
-            {},
-            v => v,
-            v => v
-          )
+          const matcher = createRouterMatcher(records, {})
           const resolved = matcher.resolve(location, currentLocation)
           expect(resolved).toEqual(expected)
           return resolved