From: Eduardo San Martin Morote Date: Sun, 27 Oct 2019 14:37:34 +0000 (+0100) Subject: refactor(matcher): rename to path-matcher X-Git-Tag: v4.0.0-alpha.0~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d561f9d3af3ca5dbe352eb463eac39031b259ae;p=thirdparty%2Fvuejs%2Frouter.git refactor(matcher): rename to path-matcher --- diff --git a/__tests__/matcher/ranking.spec.ts b/__tests__/matcher/ranking.spec.ts index e820078b..c3600dd8 100644 --- a/__tests__/matcher/ranking.spec.ts +++ b/__tests__/matcher/ranking.spec.ts @@ -1,4 +1,4 @@ -import { createRouteRecordMatcher } from '../../src/matcher/path-ranker' +import { createRouteRecordMatcher } from '../../src/matcher/path-matcher' import { RegExpOptions } from 'path-to-regexp' import { RouteComponent } from '../../src/types' import { RouteRecordMatcher } from '../../src/matcher/types' diff --git a/__tests__/matcher/resolve.spec.ts b/__tests__/matcher/resolve.spec.ts index 0b8dd4c1..d62846f6 100644 --- a/__tests__/matcher/resolve.spec.ts +++ b/__tests__/matcher/resolve.spec.ts @@ -81,6 +81,7 @@ describe('Router Matcher', () => { } catch (error) { return error } + throw new Error('Expected Error to be thrown') } describe('alias', () => { diff --git a/src/matcher/index.ts b/src/matcher/index.ts index b2aae616..f0ca9daf 100644 --- a/src/matcher/index.ts +++ b/src/matcher/index.ts @@ -9,7 +9,7 @@ import { // MatchedRouteRecord, } from '../types' import { NoRouteMatchError, InvalidRouteMatch } from '../errors' -import { createRouteRecordMatcher, normalizeRouteRecord } from './path-ranker' +import { createRouteRecordMatcher, normalizeRouteRecord } from './path-matcher' import { RouteRecordMatcher } from './types' interface RouterMatcher { diff --git a/src/matcher/path-ranker.ts b/src/matcher/path-matcher.ts similarity index 100% rename from src/matcher/path-ranker.ts rename to src/matcher/path-matcher.ts