diff --git a/test/db.js b/test/db.js index fdfde1f7..f2b2aaa3 100644 --- a/test/db.js +++ b/test/db.js @@ -82,6 +82,7 @@ const regensburgHbf = '8000309' const blnOstbahnhof = '8010255' const blnTiergarten = '8089091' const blnJannowitzbrücke = '8089019' +const potsdamHbf = '8012666' test('journeys – Berlin Schwedter Str. to München Hbf', co(function* (t) { const journeys = yield client.journeys(blnSchwedterStr, münchenHbf, { @@ -366,6 +367,15 @@ test('station', co(function* (t) { t.end() })) +test('line with additionalName', co(function* (t) { + const departures = yield client.departures(potsdamHbf, { + duration: 12 * 60, // 12 minutes + products: {bus: false, suburban: false, tram: false} + }) + t.ok(departures.some(d => d.line && d.line.additionalName)) + t.end() +})) + test('reachableFrom', co(function* (t) { const torfstr17 = { type: 'location',