mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
fix Nah.SH nearby() E2E/integration test ✅
This commit is contained in:
parent
16671b6dc5
commit
d43d3bafe3
1 changed files with 5 additions and 4 deletions
|
@ -293,10 +293,11 @@ tap.test('nearby Kiel Hbf', async (t) => {
|
|||
t.ok(Array.isArray(nearby))
|
||||
t.equal(nearby.length, 2)
|
||||
|
||||
t.ok(nearby[0].id === kielHbf || nearby[0].id === '8000199')
|
||||
t.equal(nearby[0].name, 'Kiel Hbf')
|
||||
t.ok(nearby[0].distance >= 0)
|
||||
t.ok(nearby[0].distance <= 100)
|
||||
const match = nearby.find(n => n.id === kielHbf || n.station?.id === kielHbf)
|
||||
t.ok(match)
|
||||
t.equal(match.name, 'Kiel Hbf')
|
||||
t.ok(match.distance >= 0)
|
||||
t.ok(match.distance <= 100)
|
||||
|
||||
t.end()
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue