Skip to content

Commit 645780e

Browse files
committed
test(static matching): Remove create map spec implementation detail.
1 parent 34b32fc commit 645780e

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

test/unit/specs/create-map.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ describe('Creating Route Map', function () {
6161
'',
6262
'/foo',
6363
'/bar/',
64-
'/bar',
6564
'/bar-redirect/',
66-
'/bar-redirect',
6765
'*'
6866
])
6967
})

test/unit/specs/create-matcher.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ describe('Creating Matcher', function () {
6161
path: '/p',
6262
name: 'parent',
6363
children: [
64-
{ path: '', name: 'parent.defaultchild', component },
65-
{ path: 'a', name: 'parent.achild', component }
64+
{ path: '', name: 'parent.default', component },
65+
{ path: 'a', name: 'parent.a', component }
6666
]
6767
},
6868
{ path: '*', name: 'not-found', component }
6969
])
70-
expect(matcher.match('/p').name).toBe('parent')
71-
expect(matcher.match('/p/').name).toBe('parent.defaultchild')
72-
expect(matcher.match('/p/a').name).toBe('parent.achild')
70+
expect(matcher.match('/p').name).toBe('parent.default')
71+
expect(matcher.match('/p/').name).toBe('parent.default')
72+
expect(matcher.match('/p/a').name).toBe('parent.a')
7373
})
7474

7575
it('can get all routes', function () {

0 commit comments

Comments
 (0)