From be23ac4a7b23c854b0be4ff324b1c67c9b60c4c9 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 4 Feb 2020 19:11:58 +0100 Subject: [PATCH] test: remove unused code --- __tests__/matcher/resolve.spec.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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 -- 2.47.3