diff --git a/test/db.js b/test/db.js index 7741ffa4..ff578620 100644 --- a/test/db.js +++ b/test/db.js @@ -367,8 +367,8 @@ test('locations named Jungfernheide', co(function* (t) { t.end() })) -test('location', co(function* (t) { - const loc = yield client.location(regensburgHbf) +test('station', co(function* (t) { + const loc = yield client.station(regensburgHbf) assertValidStation(t, loc) t.equal(loc.id, regensburgHbf) diff --git a/test/insa.js b/test/insa.js index 7e2b1b38..003b5be7 100644 --- a/test/insa.js +++ b/test/insa.js @@ -312,9 +312,9 @@ test('locations named Magdeburg', co(function*(t) { t.end() })) -test('location', co(function*(t) { +test('station', co(function*(t) { const magdeburgBuckau = '8013456' - const loc = yield client.location(magdeburgBuckau) + const loc = yield client.station(magdeburgBuckau) assertValidStation(t, loc) t.equal(loc.id, magdeburgBuckau) diff --git a/test/nahsh.js b/test/nahsh.js index 6ee4d33f..51198bb8 100644 --- a/test/nahsh.js +++ b/test/nahsh.js @@ -369,8 +369,8 @@ test('locations named Kiel', co(function* (t) { t.end() })) -test('location', co(function* (t) { - const loc = yield client.location(schleswig) +test('station', co(function* (t) { + const loc = yield client.station(schleswig) assertValidStation(t, loc) t.equal(loc.id, schleswig) diff --git a/test/oebb.js b/test/oebb.js index 9db6a42f..d57b4a7e 100644 --- a/test/oebb.js +++ b/test/oebb.js @@ -418,8 +418,8 @@ test('locations named Salzburg', co(function* (t) { t.end() })) -test('location', co(function* (t) { - const loc = yield client.location(grazHbf) +test('station', co(function* (t) { + const loc = yield client.station(grazHbf) assertValidStation(t, loc) t.equal(loc.id, grazHbf) diff --git a/test/vbb.js b/test/vbb.js index cc159894..96a8d4ab 100644 --- a/test/vbb.js +++ b/test/vbb.js @@ -456,8 +456,8 @@ test('locations', co(function* (t) { t.end() })) -test('location', co(function* (t) { - const loc = yield client.location(spichernstr) +test('station', co(function* (t) { + const loc = yield client.station(spichernstr) assertValidStation(t, loc) t.equal(loc.id, spichernstr)