mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-05-05 22:19:59 +03:00
adapt tests to bad0af8
✅
This commit is contained in:
parent
8b87868fba
commit
2e12206c0b
10 changed files with 22 additions and 22 deletions
|
@ -361,10 +361,10 @@ test('locations', async (t) => {
|
|||
t.end()
|
||||
})
|
||||
|
||||
test('station', async (t) => {
|
||||
const s = await client.station(spichernstr)
|
||||
test('stop', async (t) => {
|
||||
const s = await client.stop(spichernstr)
|
||||
|
||||
validate(t, s, ['stop', 'station'], 'station')
|
||||
validate(t, s, ['stop', 'station'], 'stop')
|
||||
t.equal(s.id, spichernstr)
|
||||
|
||||
t.end()
|
||||
|
|
|
@ -226,7 +226,7 @@ test('locations named "Capitol"', async (t) => {
|
|||
})
|
||||
|
||||
test('station Domain', async (t) => {
|
||||
const s = await client.station(domain)
|
||||
const s = await client.stop(domain)
|
||||
|
||||
validate(t, s, ['stop', 'station'], 'station')
|
||||
t.equal(s.id, domain)
|
||||
|
|
|
@ -356,10 +356,10 @@ test('locations named Jungfernheide', async (t) => {
|
|||
t.end()
|
||||
})
|
||||
|
||||
test('station', async (t) => {
|
||||
const s = await client.station(regensburgHbf)
|
||||
test('stop', async (t) => {
|
||||
const s = await client.stop(regensburgHbf)
|
||||
|
||||
validate(t, s, ['stop', 'station'], 'station')
|
||||
validate(t, s, ['stop', 'station'], 'stop')
|
||||
t.equal(s.id, regensburgHbf)
|
||||
|
||||
t.end()
|
||||
|
|
|
@ -251,7 +251,7 @@ test('locations named Magdeburg', async (t) => {
|
|||
})
|
||||
|
||||
test('station Magdeburg-Buckau', async (t) => {
|
||||
const s = await client.station(magdeburgBuckau)
|
||||
const s = await client.stop(magdeburgBuckau)
|
||||
|
||||
validate(t, s, ['stop', 'station'], 'station')
|
||||
t.equal(s.id, magdeburgBuckau)
|
||||
|
|
|
@ -319,10 +319,10 @@ test('locations named "Kiel Rathaus"', async (t) => {
|
|||
t.end()
|
||||
})
|
||||
|
||||
test('station', async (t) => {
|
||||
const s = await client.station(kielHbf)
|
||||
test('stop', async (t) => {
|
||||
const s = await client.stop(kielHbf)
|
||||
|
||||
validate(t, s, ['stop', 'station'], 'station')
|
||||
validate(t, s, ['stop', 'station'], 'stop')
|
||||
t.equal(s.id, kielHbf)
|
||||
|
||||
t.end()
|
||||
|
|
|
@ -342,8 +342,8 @@ test('locations named Salzburg', async (t) => {
|
|||
t.end()
|
||||
})
|
||||
|
||||
test('station', async (t) => {
|
||||
const loc = await client.station(wienRenngasse)
|
||||
test('stop', async (t) => {
|
||||
const loc = await client.stop(wienRenngasse)
|
||||
|
||||
// todo: find a way to always get products from the API
|
||||
// todo: cfg.stationProductsOptional option
|
||||
|
@ -359,7 +359,7 @@ test('station', async (t) => {
|
|||
validateStation(validate, withFakeProducts, name)
|
||||
}
|
||||
})
|
||||
validate(t, loc, ['stop', 'station'], 'station')
|
||||
validate(t, loc, ['stop', 'station'], 'stop')
|
||||
|
||||
t.equal(loc.id, wienRenngasse)
|
||||
|
||||
|
|
|
@ -301,10 +301,10 @@ test('locations named Saarbrücken', async (t) => {
|
|||
t.end()
|
||||
})
|
||||
|
||||
test('station', async (t) => {
|
||||
const s = await client.station(saarbrueckenUhlandstr)
|
||||
test('stop', async (t) => {
|
||||
const s = await client.stop(saarbrueckenUhlandstr)
|
||||
|
||||
validate(t, s, ['stop', 'station'], 'station')
|
||||
validate(t, s, ['stop', 'station'], 'stop')
|
||||
t.equal(s.id, saarbrueckenUhlandstr)
|
||||
|
||||
t.end()
|
||||
|
|
|
@ -242,7 +242,7 @@ test('locations named "Nationaltheater"', async (t) => {
|
|||
})
|
||||
|
||||
test('station Karl-Theodor-Straße', async (t) => {
|
||||
const s = await client.station(karlTheodorStr)
|
||||
const s = await client.stop(karlTheodorStr)
|
||||
|
||||
validate(t, s, ['stop', 'station'], 'station')
|
||||
t.equal(s.id, karlTheodorStr)
|
||||
|
|
|
@ -342,10 +342,10 @@ test('locations', async (t) => {
|
|||
t.end()
|
||||
})
|
||||
|
||||
test('station', async (t) => {
|
||||
const s = await client.station(spichernstr)
|
||||
test('stop', async (t) => {
|
||||
const s = await client.stop(spichernstr)
|
||||
|
||||
validate(t, s, ['stop', 'station'], 'station')
|
||||
validate(t, s, ['stop', 'station'], 'stop')
|
||||
t.equal(s.id, spichernstr)
|
||||
|
||||
t.end()
|
||||
|
|
|
@ -244,7 +244,7 @@ test.skip('locations named Magdeburg', async (t) => {
|
|||
})
|
||||
|
||||
test.skip('station Magdeburg-Buckau', async (t) => {
|
||||
const s = await client.station(bremerhavenHbf)
|
||||
const s = await client.stop(bremerhavenHbf)
|
||||
|
||||
validate(t, s, ['stop', 'station'], 'station')
|
||||
t.equal(s.id, bremerhavenHbf)
|
||||
|
|
Loading…
Add table
Reference in a new issue