mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 23:29:35 +02:00
fix tests broken by 3e672ee
💚
This commit is contained in:
parent
8c726dce01
commit
108eda4450
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ const testJourneysWithDetour = co(function* (cfg) {
|
||||||
|
|
||||||
const leg = journeys[0].legs.some((leg) => {
|
const leg = journeys[0].legs.some((leg) => {
|
||||||
return leg.stopovers && leg.stopovers.some((stopover) => {
|
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')
|
t.ok(leg, detourIds.join('/') + ' is not being passed')
|
||||||
|
|
|
@ -189,7 +189,7 @@ test('journeys: via works – without detour', co(function* (t) {
|
||||||
|
|
||||||
const l2 = journeys[0].legs.some((leg) => {
|
const l2 = journeys[0].legs.some((leg) => {
|
||||||
return leg.stopovers && leg.stopovers.some((stopover) => {
|
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')
|
t.ok(l2, 'Museumsquartier is not being passed')
|
||||||
|
|
Loading…
Add table
Reference in a new issue