This commit is contained in:
Jannis R 2018-03-02 16:34:22 +01:00
parent d56be3eceb
commit 0a9042aa83
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -148,7 +148,7 @@ test('journeys  only subway', co(function* (t) {
test('journeys  fails with no product', co(function* (t) { test('journeys  fails with no product', co(function* (t) {
try { try {
yield client.journeys(spichernstr, bismarckstr, { client.journeys(spichernstr, bismarckstr, {
when, when,
products: { products: {
suburban: false, suburban: false,
@ -160,6 +160,8 @@ test('journeys  fails with no product', co(function* (t) {
regional: false regional: false
} }
}) })
// silence rejections, we're only interested in exceptions
.catch(() => {})
} catch (err) { } catch (err) {
t.ok(err, 'error thrown') t.ok(err, 'error thrown')
t.end() t.end()