From: Eduardo San Martin Morote Date: Tue, 4 Feb 2020 18:11:58 +0000 (+0100) Subject: test: remove unused code X-Git-Tag: v4.0.0-alpha.0~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be23ac4a7b23c854b0be4ff324b1c67c9b60c4c9;p=thirdparty%2Fvuejs%2Frouter.git test: remove unused code --- diff --git a/__tests__/matcher/resolve.spec.ts b/__tests__/matcher/resolve.spec.ts index 1a380614..bb412d6a 100644 --- a/__tests__/matcher/resolve.spec.ts +++ b/__tests__/matcher/resolve.spec.ts @@ -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