juliuste / db-prices

Find journey prices using the DB Sparpreise API.
ISC License
102 stars 9 forks source link

add test, fix bugs #2

Closed derhuerst closed 7 years ago

derhuerst commented 7 years ago

This PR adds a basic test that check the structure and types of the response. It does not do any content-related validation (yet).

Also, parsePrice now returns a number and route.nightTrain is now a boolean.

derhuerst commented 7 years ago

Also, do you mind publishing to npm afterwards?

derhuerst commented 7 years ago

bump.