From 05409c4f10d27ce729717688bf3c2e1c601d27c4 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 20 Nov 2018 18:38:48 +0100 Subject: [PATCH] earlier/later journeys tests: add when :green_heart: --- test/bvg.js | 3 ++- test/cmta.js | 3 ++- test/db.js | 3 ++- test/insa.js | 3 ++- test/lib/earlier-later-journeys.js | 2 +- test/nahsh.js | 3 ++- test/oebb.js | 3 ++- test/sbahn-muenchen.js | 3 ++- test/vbb.js | 3 ++- test/vbn.js | 3 ++- 10 files changed, 19 insertions(+), 10 deletions(-) diff --git a/test/bvg.js b/test/bvg.js index eeb2026b..1f5ec9cf 100644 --- a/test/bvg.js +++ b/test/bvg.js @@ -132,7 +132,8 @@ test('earlier/later journeys', co(function* (t) { fetchJourneys: client.journeys, validate, fromId: spichernstr, - toId: bismarckstr + toId: bismarckstr, + when }) t.end() diff --git a/test/cmta.js b/test/cmta.js index d6a970ae..1e9a53c0 100644 --- a/test/cmta.js +++ b/test/cmta.js @@ -142,7 +142,8 @@ test('earlier/later journeys', co(function* (t) { fetchJourneys: client.journeys, validate, fromId: broadieOaks, - toId: domain + toId: domain, + when }) t.end() diff --git a/test/db.js b/test/db.js index ae916ece..075e44d9 100644 --- a/test/db.js +++ b/test/db.js @@ -188,7 +188,8 @@ test('earlier/later journeys, Jungfernheide -> München Hbf', co(function* (t) { fetchJourneys: client.journeys, validate, fromId: jungfernheide, - toId: münchenHbf + toId: münchenHbf, + when }) t.end() diff --git a/test/insa.js b/test/insa.js index 90aee588..4b43044e 100644 --- a/test/insa.js +++ b/test/insa.js @@ -148,7 +148,8 @@ test('earlier/later journeys', co(function* (t) { fetchJourneys: client.journeys, validate, fromId: magdeburgHbf, - toId: magdeburgBuckau + toId: magdeburgBuckau, + when }) t.end() diff --git a/test/lib/earlier-later-journeys.js b/test/lib/earlier-later-journeys.js index 197edd58..0fddb8a8 100644 --- a/test/lib/earlier-later-journeys.js +++ b/test/lib/earlier-later-journeys.js @@ -8,7 +8,7 @@ const testEarlierLaterJourneys = co(function* (cfg) { fetchJourneys, fromId, toId, - when, + when // todo: validate } = cfg diff --git a/test/nahsh.js b/test/nahsh.js index d6fdf978..1a2a2d57 100644 --- a/test/nahsh.js +++ b/test/nahsh.js @@ -182,7 +182,8 @@ test('earlier/later journeys, Kiel Hbf -> Flensburg', co(function* (t) { fetchJourneys: client.journeys, validate, fromId: kielHbf, - toId: flensburg + toId: flensburg, + when }) t.end() diff --git a/test/oebb.js b/test/oebb.js index 6ee84408..0cbc9e48 100644 --- a/test/oebb.js +++ b/test/oebb.js @@ -208,7 +208,8 @@ test('earlier/later journeys, Salzburg Hbf -> Wien Westbahnhof', co(function* (t fetchJourneys: client.journeys, validate, fromId: salzburgHbf, - toId: wienWestbahnhof + toId: wienWestbahnhof, + when }) t.end() diff --git a/test/sbahn-muenchen.js b/test/sbahn-muenchen.js index 13efbd45..bcb2f989 100644 --- a/test/sbahn-muenchen.js +++ b/test/sbahn-muenchen.js @@ -138,7 +138,8 @@ test('earlier/later journeys', co(function* (t) { fetchJourneys: client.journeys, validate, fromId: mittersendling, - toId: karlTheodorStr + toId: karlTheodorStr, + when }) t.end() diff --git a/test/vbb.js b/test/vbb.js index 4695d866..98e50c7d 100644 --- a/test/vbb.js +++ b/test/vbb.js @@ -122,7 +122,8 @@ test('earlier/later journeys', co(function* (t) { fetchJourneys: client.journeys, validate, fromId: spichernstr, - toId: bismarckstr + toId: bismarckstr, + when }) t.end() diff --git a/test/vbn.js b/test/vbn.js index d14ac1d2..d31c4fab 100644 --- a/test/vbn.js +++ b/test/vbn.js @@ -141,7 +141,8 @@ test.skip('earlier/later journeys', co(function* (t) { fetchJourneys: client.journeys, validate, fromId: bremenHbf, - toId: bremerhavenHbf + toId: bremerhavenHbf, + when }) t.end()