@@ -65,7 +65,7 @@ describe('useSavedRoutes', () => {
6565 }
6666 ) ;
6767
68- await waitFor ( ( ) => expect ( mockDb . execAsync ) . toHaveBeenCalledTimes ( 4 ) ) ;
68+ await waitFor ( ( ) => expect ( mockDb . execAsync ) . toHaveBeenCalledTimes ( 5 ) ) ;
6969 expect ( mockDb . execAsync ) . toHaveBeenNthCalledWith (
7070 1 ,
7171 expect . stringContaining ( 'CREATE TABLE IF NOT EXISTS saved_routes' )
@@ -183,13 +183,15 @@ describe('useSavedRoutes', () => {
183183 hasTrainType : true ,
184184 lineId : 1 ,
185185 trainTypeId : 9 ,
186+ wantedDestinationId : null ,
186187 name : 'WithType' ,
187188 createdAt : new Date ( '2025-01-01T00:00:00.000Z' ) ,
188189 } ;
189190 const withoutType : SavedRouteWithoutTrainTypeInput = {
190191 hasTrainType : false ,
191192 lineId : 2 ,
192193 trainTypeId : null ,
194+ wantedDestinationId : null ,
193195 name : 'WithoutType' ,
194196 createdAt : new Date ( '2025-01-02T00:00:00.000Z' ) ,
195197 } ;
@@ -227,6 +229,7 @@ describe('useSavedRoutes', () => {
227229 withType . name ,
228230 withType . lineId ,
229231 withType . trainTypeId ,
232+ withType . wantedDestinationId ,
230233 1 ,
231234 saved1Defined . createdAt . toISOString ( ) ,
232235 ]
@@ -306,6 +309,7 @@ describe('useSavedRoutes', () => {
306309 hasTrainType : true ,
307310 lineId : 100 ,
308311 trainTypeId : 7 ,
312+ wantedDestinationId : null ,
309313 name : 'With Train Type' ,
310314 createdAt : new Date ( '2025-01-03T00:00:00.000Z' ) ,
311315 } ;
@@ -314,6 +318,7 @@ describe('useSavedRoutes', () => {
314318 hasTrainType : false ,
315319 lineId : 200 ,
316320 trainTypeId : null ,
321+ wantedDestinationId : null ,
317322 name : 'Without Train Type' ,
318323 createdAt : new Date ( '2025-01-04T00:00:00.000Z' ) ,
319324 } ;
@@ -417,6 +422,7 @@ describe('useSavedRoutes', () => {
417422 hasTrainType : true ,
418423 lineId : 300 ,
419424 trainTypeId : 10 ,
425+ wantedDestinationId : null ,
420426 name : 'Route 1' ,
421427 createdAt : new Date ( '2025-01-05T00:00:00.000Z' ) ,
422428 } ;
@@ -425,6 +431,7 @@ describe('useSavedRoutes', () => {
425431 hasTrainType : true ,
426432 lineId : 300 ,
427433 trainTypeId : 20 ,
434+ wantedDestinationId : null ,
428435 name : 'Route 2' ,
429436 createdAt : new Date ( '2025-01-06T00:00:00.000Z' ) ,
430437 } ;
@@ -433,6 +440,7 @@ describe('useSavedRoutes', () => {
433440 hasTrainType : false ,
434441 lineId : 300 ,
435442 trainTypeId : null ,
443+ wantedDestinationId : null ,
436444 name : 'Route 3 (no train type)' ,
437445 createdAt : new Date ( '2025-01-07T00:00:00.000Z' ) ,
438446 } ;
@@ -480,6 +488,7 @@ describe('useSavedRoutes', () => {
480488 hasTrainType : true ,
481489 lineId : 500 , // JR神戸線のID
482490 trainTypeId : 50 , // サンライズ出雲のgroupId
491+ wantedDestinationId : null ,
483492 name : 'サンライズ出雲' ,
484493 createdAt : new Date ( '2025-01-08T00:00:00.000Z' ) ,
485494 } ;
0 commit comments