File tree 1 file changed +17
-9
lines changed
1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -123,17 +123,16 @@ describe('Path ranking', () => {
123
123
'/a/:b/c' ,
124
124
'/a/:b' ,
125
125
'/a' ,
126
+ '/a-:b-:c' ,
127
+ '/a-:b' ,
128
+ '/a-:w(.*)' ,
129
+ '/:a-:b-:c' ,
130
+ '/:a-:b' ,
131
+ '/:a-:b(.*)' ,
132
+ '/:a/-:b' ,
126
133
'/:a/:b' ,
127
134
'/:w' ,
128
135
'/:w+' ,
129
- // '/:a/-:b',
130
- // '/:a/:b',
131
- // '/a-:b',
132
- // '/a-:w(.*)',
133
- // '/:a-b',
134
- // '/:a-:b-:c',
135
- // '/:a-:b',
136
- // '/:a-:b(.*)',
137
136
] )
138
137
} )
139
138
@@ -168,7 +167,8 @@ describe('Path ranking', () => {
168
167
possibleOptions . forEach ( options => {
169
168
checkPathOrder ( [ '/:w' , [ '/:w?' , options ] ] )
170
169
checkPathOrder ( [ '/:w?' , [ '/:w+' , options ] ] )
171
- checkPathOrder ( [ '/:w?' , [ '/:w*' , options ] ] )
170
+ checkPathOrder ( [ '/:w+' , [ '/:w*' , options ] ] )
171
+ checkPathOrder ( [ '/:w+' , [ '/:w(.*)' , options ] ] )
172
172
} )
173
173
} )
174
174
@@ -250,4 +250,12 @@ describe('Path ranking', () => {
250
250
'/a/_:b(\\d)*-other' ,
251
251
] )
252
252
} )
253
+
254
+ it ( 'ending slashes less than params' , ( ) => {
255
+ checkPathOrder ( [
256
+ [ '/a/b' , { strict : false } ] ,
257
+ [ '/a/:b' , { strict : true } ] ,
258
+ [ '/a/:b/' , { strict : true } ] ,
259
+ ] )
260
+ } )
253
261
} )
You can’t perform that action at this time.
0 commit comments