From 0a9042aa837118128ced573547502bbe4c0d7d2d Mon Sep 17 00:00:00 2001 From: Jannis R Date: Fri, 2 Mar 2018 16:34:22 +0100 Subject: [PATCH] wip --- test/vbb.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/vbb.js b/test/vbb.js index 318cb9ad..4a3ce7fd 100644 --- a/test/vbb.js +++ b/test/vbb.js @@ -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()