@@ -524,34 +524,34 @@ describe('interpolatePath', () => {
524
524
} )
525
525
} )
526
526
527
- describe ( 'splat route missing parameter issue ' , ( ) => {
527
+ describe ( 'should handle missing _splat parameter for ' , ( ) => {
528
528
it . each ( [
529
529
{
530
- name : 'should handle missing _splat parameter for basic splat route' ,
530
+ name : 'basic splat route' ,
531
531
path : '/hello/$' ,
532
532
params : { } ,
533
533
expectedResult : '/hello' ,
534
534
} ,
535
535
{
536
- name : 'should handle missing _splat parameter for splat route with prefix' ,
536
+ name : 'splat route with prefix' ,
537
537
path : '/hello/prefix{$}' ,
538
538
params : { } ,
539
539
expectedResult : '/hello/prefix' ,
540
540
} ,
541
541
{
542
- name : 'should handle missing _splat parameter for splat route with suffix' ,
542
+ name : 'splat route with suffix' ,
543
543
path : '/hello/{$}suffix' ,
544
544
params : { } ,
545
545
expectedResult : '/hello/suffix' ,
546
546
} ,
547
547
{
548
- name : 'should handle missing _splat parameter for splat route with prefix and suffix' ,
548
+ name : 'splat route with prefix and suffix' ,
549
549
path : '/hello/prefix{$}suffix' ,
550
550
params : { } ,
551
551
expectedResult : '/hello/prefixsuffix' ,
552
552
} ,
553
553
{
554
- name : 'should handle missing _splat parameter for nested splat route' ,
554
+ name : 'nested splat route' ,
555
555
path : '/users/$id/$' ,
556
556
params : { id : '123' } ,
557
557
expectedResult : '/users/123' ,
0 commit comments