]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
refactor(matcher): rename to path-matcher
authorEduardo San Martin Morote <posva13@gmail.com>
Sun, 27 Oct 2019 14:37:34 +0000 (15:37 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Sun, 27 Oct 2019 14:37:34 +0000 (15:37 +0100)
__tests__/matcher/ranking.spec.ts
__tests__/matcher/resolve.spec.ts
src/matcher/index.ts
src/matcher/path-matcher.ts [moved from src/matcher/path-ranker.ts with 100% similarity]

index e820078bff1ef66291d9a499d23eb7c3e4261dbe..c3600dd8122045ffc1891976177dba5c901a0e22 100644 (file)
@@ -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'
index 0b8dd4c1dcc11ae45574b6f131cffafcaa39358a..d62846f6c0a82d5aecf94758fbc4ee63c8b969b0 100644 (file)
@@ -81,6 +81,7 @@ describe('Router Matcher', () => {
       } catch (error) {
         return error
       }
+      throw new Error('Expected Error to be thrown')
     }
 
     describe('alias', () => {
index b2aae6164318312a415b226ff79c845f6d759b28..f0ca9daf6460a7056c652c1f41bddbf390b2a705 100644 (file)
@@ -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 {