diff --git a/test/bvg.js b/test/bvg.js index 7c9f41fb..bf1d5f05 100644 --- a/test/bvg.js +++ b/test/bvg.js @@ -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() diff --git a/test/cmta.js b/test/cmta.js index bc686838..cfc31cce 100644 --- a/test/cmta.js +++ b/test/cmta.js @@ -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) diff --git a/test/db.js b/test/db.js index 85bcae71..e0e0153a 100644 --- a/test/db.js +++ b/test/db.js @@ -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() diff --git a/test/insa.js b/test/insa.js index 1e237e67..f1d87478 100644 --- a/test/insa.js +++ b/test/insa.js @@ -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) diff --git a/test/nahsh.js b/test/nahsh.js index 2edaa2a7..9e4277ea 100644 --- a/test/nahsh.js +++ b/test/nahsh.js @@ -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() diff --git a/test/oebb.js b/test/oebb.js index 8de02cef..5c748f25 100644 --- a/test/oebb.js +++ b/test/oebb.js @@ -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) diff --git a/test/saarfahrplan.js b/test/saarfahrplan.js index 7271e318..315c0bde 100644 --- a/test/saarfahrplan.js +++ b/test/saarfahrplan.js @@ -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() diff --git a/test/sbahn-muenchen.js b/test/sbahn-muenchen.js index 697fae85..a6224029 100644 --- a/test/sbahn-muenchen.js +++ b/test/sbahn-muenchen.js @@ -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) diff --git a/test/vbb.js b/test/vbb.js index 2dd8efc3..12976ae7 100644 --- a/test/vbb.js +++ b/test/vbb.js @@ -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() diff --git a/test/vbn.js b/test/vbn.js index 6fbe7edc..dc39f64a 100644 --- a/test/vbn.js +++ b/test/vbn.js @@ -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)