Skip to content

Commit 5b6ed7c

Browse files
committed
test(static matching): Test strict child.
1 parent f533dfa commit 5b6ed7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const routes = [
1919
children: [
2020
{
2121
path: '',
22+
pathToRegexpOptions: { strict: true },
2223
component: Baz,
2324
name: 'bar.baz'
2425
}
@@ -61,6 +62,7 @@ describe('Creating Route Map', function () {
6162
'',
6263
'/foo',
6364
'/bar/',
65+
'/bar',
6466
'/bar-redirect/',
6567
'*'
6668
])

0 commit comments

Comments
 (0)