db: tests for additional line names

This commit is contained in:
Julius Tens 2019-01-09 10:51:46 +01:00 committed by Jannis Redmann
parent d797333a70
commit dd98c6deb4

View file

@ -82,6 +82,7 @@ const regensburgHbf = '8000309'
const blnOstbahnhof = '8010255' const blnOstbahnhof = '8010255'
const blnTiergarten = '8089091' const blnTiergarten = '8089091'
const blnJannowitzbrücke = '8089019' const blnJannowitzbrücke = '8089019'
const potsdamHbf = '8012666'
test('journeys  Berlin Schwedter Str. to München Hbf', co(function* (t) { test('journeys  Berlin Schwedter Str. to München Hbf', co(function* (t) {
const journeys = yield client.journeys(blnSchwedterStr, münchenHbf, { const journeys = yield client.journeys(blnSchwedterStr, münchenHbf, {
@ -366,6 +367,15 @@ test('station', co(function* (t) {
t.end() 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) { test('reachableFrom', co(function* (t) {
const torfstr17 = { const torfstr17 = {
type: 'location', type: 'location',