fix build 💚, add todo

This commit is contained in:
Jannis R 2017-12-11 15:49:58 +01:00
parent 36825d3e2a
commit cd809d2726
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 6 additions and 3 deletions

View file

@ -19,7 +19,7 @@ const formatBitmask = createFormatBitmask(modes)
const transformReqBody = (body) => {
body.client = {type: 'IPA', id: 'VBB', name: 'vbbPROD', v: '4010300'}
body.ext = 'VBB.1'
body.ver = '1.11'
body.ver = '1.11' // todo: 1.16 with `mic` and `mac` query params
body.auth = {type: 'AID', aid: 'hafas-vbb-apps'}
return body

View file

@ -102,8 +102,11 @@ test('journeys  station to station', co.wrap(function* (t) {
t.ok(Array.isArray(part.passed))
for (let passed of part.passed) assertValidStopover(t, passed)
t.ok(Array.isArray(journey.tickets))
for (let ticket of journey.tickets) assertValidTicket(t, ticket)
// todo: find a journey where there ticket info is always available
if (journey.tickets) {
t.ok(Array.isArray(journey.tickets))
for (let ticket of journey.tickets) assertValidTicket(t, ticket)
}
}
t.end()
}))