|
1 | 1 | import { describe, it, expect } from 'vitest';
|
2 | 2 |
|
3 | 3 | import type { PathfindingResult } from 'common/api/osrdEditoastApi';
|
| 4 | +import { Duration } from 'utils/duration'; |
4 | 5 |
|
5 | 6 | import { updatePathStepsFromOperationalPoints } from '../useSetupItineraryForTrainUpdate';
|
6 | 7 |
|
@@ -154,7 +155,7 @@ describe('updatePathStepsFrom', () => {
|
154 | 155 | uic: 87747006,
|
155 | 156 | secondary_code: 'P2',
|
156 | 157 | name: '87747006',
|
157 |
| - arrival: '15:00:00', |
| 158 | + arrival: Duration.parse('PT60S'), |
158 | 159 | stopFor: null,
|
159 | 160 | },
|
160 | 161 | {
|
@@ -198,7 +199,7 @@ describe('updatePathStepsFrom', () => {
|
198 | 199 | uic: 87747006,
|
199 | 200 | secondary_code: 'P2', // should not be BV here, it has the same uic but not the same ch
|
200 | 201 | name: 'Grenadille',
|
201 |
| - arrival: '15:00:00', |
| 202 | + arrival: Duration.parse('PT60S'), |
202 | 203 | stopFor: null,
|
203 | 204 | kp: '129+952',
|
204 | 205 | positionOnPath: 586000,
|
@@ -234,7 +235,7 @@ describe('updatePathStepsFrom', () => {
|
234 | 235 | trigram: 'GE',
|
235 | 236 | secondary_code: 'P2',
|
236 | 237 | name: '87747006',
|
237 |
| - arrival: '15:00:00', |
| 238 | + arrival: Duration.parse('PT60S'), |
238 | 239 | },
|
239 | 240 | {
|
240 | 241 | id: 'who-0',
|
@@ -272,7 +273,7 @@ describe('updatePathStepsFrom', () => {
|
272 | 273 | trigram: 'GE',
|
273 | 274 | secondary_code: 'P2',
|
274 | 275 | name: 'Grenadille',
|
275 |
| - arrival: '15:00:00', |
| 276 | + arrival: Duration.parse('PT60S'), |
276 | 277 | kp: '129+952',
|
277 | 278 | positionOnPath: 586000,
|
278 | 279 | coordinates: [5.711846462951984, 45.19643525506182],
|
@@ -303,7 +304,7 @@ describe('updatePathStepsFrom', () => {
|
303 | 304 | trigram: 'GE',
|
304 | 305 | secondary_code: 'P2',
|
305 | 306 | name: '87747006',
|
306 |
| - arrival: '15:00:00', |
| 307 | + arrival: Duration.parse('PT60S'), |
307 | 308 | },
|
308 | 309 | {
|
309 | 310 | id: 'who-0',
|
@@ -341,7 +342,7 @@ describe('updatePathStepsFrom', () => {
|
341 | 342 | secondary_code: 'P2',
|
342 | 343 | trigram: 'GE',
|
343 | 344 | name: '87747006',
|
344 |
| - arrival: '15:00:00', |
| 345 | + arrival: Duration.parse('PT60S'), |
345 | 346 | kp: undefined,
|
346 | 347 | positionOnPath: 586000,
|
347 | 348 | coordinates: [5.711846462951984, 45.19643525506182],
|
|
0 commit comments