mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-04-20 23:23:56 +03:00
db: tests for additional line names
This commit is contained in:
parent
d797333a70
commit
dd98c6deb4
1 changed files with 10 additions and 0 deletions
10
test/db.js
10
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',
|
||||
|
|
Loading…
Add table
Reference in a new issue