mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
wip
This commit is contained in:
parent
d56be3eceb
commit
0a9042aa83
1 changed files with 3 additions and 1 deletions
|
@ -148,7 +148,7 @@ test('journeys – only subway', co(function* (t) {
|
|||
|
||||
test('journeys – fails with no product', co(function* (t) {
|
||||
try {
|
||||
yield client.journeys(spichernstr, bismarckstr, {
|
||||
client.journeys(spichernstr, bismarckstr, {
|
||||
when,
|
||||
products: {
|
||||
suburban: false,
|
||||
|
@ -160,6 +160,8 @@ test('journeys – fails with no product', co(function* (t) {
|
|||
regional: false
|
||||
}
|
||||
})
|
||||
// silence rejections, we're only interested in exceptions
|
||||
.catch(() => {})
|
||||
} catch (err) {
|
||||
t.ok(err, 'error thrown')
|
||||
t.end()
|
||||
|
|
Loading…
Add table
Reference in a new issue