diff --git a/test/e2e/bvg.js b/test/e2e/bvg.js index 87199af4..5b6546a4 100644 --- a/test/e2e/bvg.js +++ b/test/e2e/bvg.js @@ -56,7 +56,7 @@ const westhafen = '900001201' const wedding = '900009104' const württembergallee = '900026153' const tiergarten = '900003103' -const jannowitzbrücke = '900000100004' +const jannowitzbrücke = '900100004' const hour = 60 * 60 * 1000 @@ -195,7 +195,7 @@ tap.test('earlier/later journeys', async (t) => { t.end() }) -tap.skip('journeys – leg cycle & alternatives', async (t) => { +tap.test('journeys – leg cycle & alternatives', async (t) => { await testLegCycleAlternatives({ test: t, fetchJourneys: client.journeys, diff --git a/test/e2e/cfl.js b/test/e2e/cfl.js index 9919b2a3..c620ddd1 100644 --- a/test/e2e/cfl.js +++ b/test/e2e/cfl.js @@ -125,15 +125,15 @@ tap.test('Luxembourg to 9071 Ettelbruck, Rue des Romains 4', async (t) => { t.end() }) -// Each journey's last leg has a destination without the ID. -tap.skip('Luxembourg to Centre Hospitalier du Nord', async (t) => { +tap.test('Luxembourg to Centre Hospitalier du Nord', async (t) => { + const luxembourg = '9217081' const centreHospitalier = { type: 'location', - id: '140701020', + id: '990027653', poi: true, - name: 'Ettelbruck, Centre Hospitalier du Nord', - latitude: 49.853096, - longitude: 6.094075 + name: 'Centre Hospitalier du Nord (CHDN), Ettelbruck', + latitude: 49.853168, + longitude: 6.096268, } const res = await client.journeys(luxembourgGareCentrale, centreHospitalier, { results: 3, @@ -144,7 +144,7 @@ tap.skip('Luxembourg to Centre Hospitalier du Nord', async (t) => { test: t, res, validate, - fromId: luxembourgGareCentrale, + fromId: luxembourg, to: centreHospitalier }) t.end() diff --git a/test/e2e/db.js b/test/e2e/db.js index 37704af1..a07b8e0c 100644 --- a/test/e2e/db.js +++ b/test/e2e/db.js @@ -177,20 +177,21 @@ tap.test('journeys: via works – with detour', async (t) => { // todo: walkingSpeed "Berlin - Charlottenburg, Hallerstraße" -> jungfernheide // todo: without detour -tap.test('earlier/later journeys, Jungfernheide -> München Hbf', async (t) => { +// todo: with the DB endpoint, earlierRef/laterRef is missing queries many days in the future +tap.skip('earlier/later journeys, Jungfernheide -> München Hbf', async (t) => { await testEarlierLaterJourneys({ test: t, fetchJourneys: client.journeys, validate, fromId: jungfernheide, toId: münchenHbf, - when + when, }) t.end() }) -tap.skip('journeys – leg cycle & alternatives', async (t) => { +tap.test('journeys – leg cycle & alternatives', async (t) => { await testLegCycleAlternatives({ test: t, fetchJourneys: client.journeys, diff --git a/test/e2e/insa.js b/test/e2e/insa.js index e0720729..48d5ecdb 100644 --- a/test/e2e/insa.js +++ b/test/e2e/insa.js @@ -111,8 +111,7 @@ tap.test('Magdeburg Hbf to 39104 Magdeburg, Sternstr. 10', async (t) => { t.end() }) -// only 1 result instead of >=3 -tap.skip('Magdeburg Hbf to Kloster Unser Lieben Frauen', async (t) => { +tap.test('Magdeburg Hbf to Kloster Unser Lieben Frauen', async (t) => { const kloster = { type: 'location', id: '970012223', diff --git a/test/e2e/oebb.js b/test/e2e/oebb.js index 0536df8a..564765b0 100644 --- a/test/e2e/oebb.js +++ b/test/e2e/oebb.js @@ -299,8 +299,7 @@ tap.test('departures at Karlsplatz in direction of Pilgramgasse', async (t) => { // todo: arrivals -// todo: nearby[0].distance is undefined 🙄 -tap.skip('nearby Salzburg Hbf', async (t) => { +tap.test('nearby Salzburg Hbf', async (t) => { const nearby = await client.nearby({ type: 'location', longitude: 13.045605, diff --git a/test/e2e/sbahn-muenchen.js b/test/e2e/sbahn-muenchen.js index 5527ac59..3b335d26 100644 --- a/test/e2e/sbahn-muenchen.js +++ b/test/e2e/sbahn-muenchen.js @@ -50,8 +50,8 @@ const validate = createValidate(cfg, { const client = createClient(sMunichProfile, 'public-transport/hafas-client:test') const mittersendling = '8004154' -const karlTheodorStr = '621790' // Karl-Theodor-Straße -const lehel = '000624826' +const karlTheodorStr = '638842' // Karl-Theodor-Straße +const lehel = '624826' const poetschnerstr = { type: 'location', address: 'Pötschnerstraße 3, Neuhausen', @@ -147,7 +147,8 @@ tap.test('earlier/later journeys', async (t) => { t.end() }) -tap.test('refreshJourney', async (t) => { +// todo: for some reason, a leg is missing in the journey returned by refreshJourney() +tap.skip('refreshJourney', async (t) => { await testRefreshJourney({ test: t, fetchJourneys: client.journeys, diff --git a/test/e2e/vrn.js b/test/e2e/vrn.js index 0120079f..943d594d 100644 --- a/test/e2e/vrn.js +++ b/test/e2e/vrn.js @@ -204,7 +204,7 @@ tap.test('locations named Ebertpark', async (t) => { t.end() }) -tap.test('station Meckesheim', async (t) => { +tap.skip('station Meckesheim', async (t) => { const s = await client.stop(meckesheim) validate(t, s, ['stop', 'station'], 'station')