Skip to content

Commit 654005c

Browse files
committed
test(router-core): add priority property to route match objects
1 parent 62649e8 commit 654005c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎packages/router-core/tests/new-process-route-tree.test.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,6 +1419,7 @@ describe('findRouteMatch', () => {
14191419
"parent": [Circular],
14201420
"parse": null,
14211421
"pathless": null,
1422+
"priority": 0,
14221423
"route": {
14231424
"fullPath": "/$foo/",
14241425
"id": "/$foo/_layout/",
@@ -1434,6 +1435,7 @@ describe('findRouteMatch', () => {
14341435
"parent": [Circular],
14351436
"parse": [Function],
14361437
"pathless": null,
1438+
"priority": 0,
14371439
"route": {
14381440
"children": [
14391441
{
@@ -1470,6 +1472,7 @@ describe('findRouteMatch', () => {
14701472
"parent": [Circular],
14711473
"parse": null,
14721474
"pathless": null,
1475+
"priority": 0,
14731476
"route": {
14741477
"fullPath": "/$foo/bar",
14751478
"id": "/$foo/_layout/bar",
@@ -1485,6 +1488,7 @@ describe('findRouteMatch', () => {
14851488
},
14861489
],
14871490
"prefix": undefined,
1491+
"priority": 0,
14881492
"route": null,
14891493
"static": null,
14901494
"staticInsensitive": Map {
@@ -1498,6 +1502,7 @@ describe('findRouteMatch', () => {
14981502
"parent": [Circular],
14991503
"parse": null,
15001504
"pathless": null,
1505+
"priority": 0,
15011506
"route": {
15021507
"fullPath": "/$foo/hello",
15031508
"id": "/$foo/hello",
@@ -1524,6 +1529,7 @@ describe('findRouteMatch', () => {
15241529
"parent": [Circular],
15251530
"parse": null,
15261531
"pathless": null,
1532+
"priority": 0,
15271533
"route": {
15281534
"fullPath": "/",
15291535
"id": "/",
@@ -1539,6 +1545,7 @@ describe('findRouteMatch', () => {
15391545
"parent": null,
15401546
"parse": null,
15411547
"pathless": null,
1548+
"priority": 0,
15421549
"route": null,
15431550
"static": null,
15441551
"staticInsensitive": null,

0 commit comments

Comments
 (0)