adapt tests to 3c9c5cb

This commit is contained in:
Jannis R 2018-06-04 19:01:21 +02:00 committed by Jannis Redmann
parent 2d11cfae1e
commit 46c05eba05
5 changed files with 10 additions and 10 deletions

View file

@ -367,8 +367,8 @@ test('locations named Jungfernheide', co(function* (t) {
t.end() t.end()
})) }))
test('location', co(function* (t) { test('station', co(function* (t) {
const loc = yield client.location(regensburgHbf) const loc = yield client.station(regensburgHbf)
assertValidStation(t, loc) assertValidStation(t, loc)
t.equal(loc.id, regensburgHbf) t.equal(loc.id, regensburgHbf)

View file

@ -312,9 +312,9 @@ test('locations named Magdeburg', co(function*(t) {
t.end() t.end()
})) }))
test('location', co(function*(t) { test('station', co(function*(t) {
const magdeburgBuckau = '8013456' const magdeburgBuckau = '8013456'
const loc = yield client.location(magdeburgBuckau) const loc = yield client.station(magdeburgBuckau)
assertValidStation(t, loc) assertValidStation(t, loc)
t.equal(loc.id, magdeburgBuckau) t.equal(loc.id, magdeburgBuckau)

View file

@ -369,8 +369,8 @@ test('locations named Kiel', co(function* (t) {
t.end() t.end()
})) }))
test('location', co(function* (t) { test('station', co(function* (t) {
const loc = yield client.location(schleswig) const loc = yield client.station(schleswig)
assertValidStation(t, loc) assertValidStation(t, loc)
t.equal(loc.id, schleswig) t.equal(loc.id, schleswig)

View file

@ -418,8 +418,8 @@ test('locations named Salzburg', co(function* (t) {
t.end() t.end()
})) }))
test('location', co(function* (t) { test('station', co(function* (t) {
const loc = yield client.location(grazHbf) const loc = yield client.station(grazHbf)
assertValidStation(t, loc) assertValidStation(t, loc)
t.equal(loc.id, grazHbf) t.equal(loc.id, grazHbf)

View file

@ -456,8 +456,8 @@ test('locations', co(function* (t) {
t.end() t.end()
})) }))
test('location', co(function* (t) { test('station', co(function* (t) {
const loc = yield client.location(spichernstr) const loc = yield client.station(spichernstr)
assertValidStation(t, loc) assertValidStation(t, loc)
t.equal(loc.id, spichernstr) t.equal(loc.id, spichernstr)