File tree Expand file tree Collapse file tree
ui/src/components/stop-registry/stops/stop-details Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ describe('Stop registry utils', () => {
1111 stopType : {
1212 railReplacement : true ,
1313 virtual : false ,
14+ trunkLineStop : false ,
1415 } ,
1516 } ;
1617 const result = translateStopTypes ( i18n . t , stopPlace ) ;
@@ -22,17 +23,21 @@ describe('Stop registry utils', () => {
2223 stopType : {
2324 railReplacement : true ,
2425 virtual : true ,
26+ trunkLineStop : true ,
2527 } ,
2628 } ;
2729 const result = translateStopTypes ( i18n . t , stopPlace ) ;
28- expect ( result ) . toBe ( 'Raideliikennettä korvaava, virtuaalipysäkki' ) ;
30+ expect ( result ) . toBe (
31+ 'Raideliikennettä korvaava, virtuaalipysäkki, runkolinjapysäkki' ,
32+ ) ;
2933 } ) ;
3034
3135 it ( 'should return an empty string when stop has no types' , ( ) => {
3236 const stopPlace = {
3337 stopType : {
3438 railReplacement : false ,
3539 virtual : false ,
40+ trunkLineStop : false ,
3641 } ,
3742 } ;
3843 const result = translateStopTypes ( i18n . t , stopPlace ) ;
You can’t perform that action at this time.
0 commit comments