diff --git a/test/lib/journeys-with-detour.js b/test/lib/journeys-with-detour.js index 0e454f3a..9b725a9b 100644 --- a/test/lib/journeys-with-detour.js +++ b/test/lib/journeys-with-detour.js @@ -12,7 +12,7 @@ const testJourneysWithDetour = co(function* (cfg) { const leg = journeys[0].legs.some((leg) => { return leg.stopovers && leg.stopovers.some((stopover) => { - return detourIds.includes(stopover.station.id) + return detourIds.includes(stopover.stop.id) }) }) t.ok(leg, detourIds.join('/') + ' is not being passed') diff --git a/test/oebb.js b/test/oebb.js index 62414cc7..a55a8a47 100644 --- a/test/oebb.js +++ b/test/oebb.js @@ -189,7 +189,7 @@ test('journeys: via works – without detour', co(function* (t) { const l2 = journeys[0].legs.some((leg) => { return leg.stopovers && leg.stopovers.some((stopover) => { - return stopover.station.id === museumsquartierPassed + return stopover.stop.id === museumsquartierPassed }) }) t.ok(l2, 'Museumsquartier is not being passed')