adapt tests to bad0af8

This commit is contained in:
Jannis R 2018-11-21 19:55:37 +01:00
parent 8b87868fba
commit 2e12206c0b
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
10 changed files with 22 additions and 22 deletions

View file

@ -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()

View file

@ -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)

View file

@ -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()

View file

@ -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)

View file

@ -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()

View file

@ -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)

View file

@ -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()

View file

@ -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)

View file

@ -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()

View file

@ -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)