Commit graph

48 commits

Author SHA1 Message Date
Jannis R
8566bcc85f
journeys tests: expect 4 results
The default nr of results returned by HAFAS seems to be `3`, so we pick
a different one to assert that the `results` option actually works.
2019-02-28 16:45:31 +01:00
Jannis R
a1c40ad084
adapt tests to fcc53b5 2019-02-28 16:45:09 +01:00
Jannis R
88c78c243f
adapt tests to 96ff59d 2019-02-28 16:44:46 +01:00
Jannis R
0fa9610b30
tests: trip validator 2019-02-28 16:44:46 +01:00
Jannis R
2e12206c0b
adapt tests to bad0af8 2019-02-28 16:44:22 +01:00
Jannis R
59584a3402
tests: co/yield -> async/await 2019-02-28 16:44:10 +01:00
Jannis R
b99ceb21fb
adapt tests to 1e13cf1 2019-02-28 16:43:57 +01:00
Jannis R
1eeb0d7bd7
make tests more reliable 💚 2019-02-15 15:11:43 +01:00
Jannis R
f097022b9a
tests for departure.nextStopovers/arrival.previousStopovers 2018-12-28 22:14:35 +01:00
Jannis R
05409c4f10
earlier/later journeys tests: add when 💚 2018-11-20 18:38:48 +01:00
Jannis R
067e807db7 INSA doesn't support refreshJourney 🐛 2018-07-25 10:05:52 +02:00
Jannis R
da10988b29 add tests for refreshJourneys (c88071f) 2018-07-25 10:05:52 +02:00
Jannis R
5f39d2875c adapt tests to 0a0cddc 2018-07-24 18:29:31 +02:00
Jannis R
951c21eecc adapt tests to 98a051b 2018-07-13 16:07:23 +02:00
Jannis R
c80f355d47
tests for departures with direction option 2018-07-07 21:33:35 +02:00
Jannis R
ab5ca3db8b rename journeyLeg() to trip() 💥, adapt tests 2018-07-07 21:19:28 +02:00
Jannis R
3ade1af7a2 basic tests for arrivals 2018-06-26 18:13:41 +02:00
Jannis R
ebe4fa64d8 opt.passedStations -> opt.stopovers 💥 2018-06-19 08:23:49 +02:00
Jannis R
b419477a7d
merge next into tests-rewrite 2018-06-10 14:57:51 +02:00
Jannis R
46c05eba05 adapt tests to 3c9c5cb 2018-06-10 14:47:29 +02:00
Jannis R
0136189aa4
tests: fix isRoughlyEqual calls 2018-06-07 12:59:50 +02:00
Jannis R
938195753c
merge next into tests-rewrite 2018-05-31 14:00:58 +02:00
Jannis R
a59b340d67 adapt tests to 1c467cd 2018-05-30 16:39:51 +02:00
Jannis R
2ca7e64fd5
journeys detour tests: use helper fn 2018-05-14 00:13:09 +02:00
Jannis R
c769638005
add missing test helper fn, add todos, clean up 2018-04-25 13:24:27 +02:00
Jannis R
fecd2aefc0
journeys fails with no product tests: use helper fn 2018-04-25 13:23:53 +02:00
Jannis R
cb5e01ed5b
departures tests: use helper fn 2018-04-24 18:16:59 +02:00
Jannis R
9501dab9f4
journeys from station to POI tests: use helper fn 2018-04-24 18:16:52 +02:00
Jannis R
1018369576
journeys from station to address tests: use helper fn 2018-04-24 15:49:54 +02:00
Jannis R
6818635ee4
earlier/later journeys test: use helper fn 2018-04-24 15:28:36 +02:00
Jannis R
63e303b6f8
journeys from station to station test: use helper fn 2018-04-23 15:45:20 +02:00
Jannis R
0ce5e9114f
INSA tests: use new validators 2018-04-19 18:14:43 +02:00
Jannis R
486929acc7
tests: move util, co, validate-line-without-mode into lib 2018-04-18 16:16:31 +02:00
Jannis R
41b574c468
tests: move assertValidStationProducts into assertValidStation 2018-04-18 16:12:59 +02:00
Jannis R
4cba773eb0
adapt tests to 0e80be0 2018-03-21 01:55:53 +01:00
Jannis Redmann
7aba19f137
merge pull request #32 from refactor-products
new products markup
2018-03-18 13:22:24 +01:00
Jannis R
40b559f80d
radar(n, w, s, e) -> radar({n, w, s, e}) 💥, adapt tests 2018-03-16 17:28:20 +01:00
Jannis R
bc51d257fd
adapt tests to new products markup 2018-03-16 17:15:09 +01:00
Jannis R
94bbe2361b
products[].product -> products[].id 2018-03-16 17:15:09 +01:00
Julius Tens
06cc37b45f update insa via tests 2018-03-16 15:32:19 +01:00
Jannis R
c123d9e451
INSA: enable radar 2018-03-13 21:06:27 +01:00
Jannis R
ba97275bae
INSA: enable journeyLeg 2018-03-13 21:04:42 +01:00
Jannis R
93f3bd1987
INSA: remove test todo, fix bug caused by 73c419f
- apparently INSA doesn't return prices
2018-03-13 19:24:56 +01:00
Jannis R
a10e9487bd
minor changes & fixes 2018-03-13 03:32:21 +01:00
Jannis R
73c419fadb
fix products parsing 🐛, fix tests for it 2018-03-13 03:23:03 +01:00
Jannis R
f6c615531b
INSA: adapt tests to 1.16 protocol, add to test/index.js 2018-03-13 02:28:51 +01:00
Jannis R
094e95c9cc
restore former code style 👕 2018-03-12 22:47:50 +01:00
Johannes Filter
dbaa795fce add test for insa, edge cases not working 😢 2018-02-26 23:23:00 +01:00