diff --git a/docs/nearby.md b/docs/nearby.md index 2522ca8b..972f8f0a 100644 --- a/docs/nearby.md +++ b/docs/nearby.md @@ -8,6 +8,7 @@ With `opt`, you can override the default options, which look like this: ```js { + results: 8, // maximum number of results distance: null, // maximum walking distance in meters poi: false, // return points of interest? stations: true, // return stations? diff --git a/package.json b/package.json index 27e12bda..c3c26827 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hafas-client", - "description": "JavaScript client for HAFAS public transport APIs.", + "description": "Client for HAFAS public transport APIs.", "version": "3.4.2", "main": "index.js", "files": [ diff --git a/test/lib/validators.js b/test/lib/validators.js index 34db2980..cd823580 100644 --- a/test/lib/validators.js +++ b/test/lib/validators.js @@ -241,6 +241,7 @@ const validateJourney = (val, j, name = 'journey') => { id: 'foo' // todo: let hafas-client parse a journey ID }, j) defaultValidators.journey(val, withFakeId, name) + // todo: j.refreshToken if ('tickets' in j) { a.ok(Array.isArray(j.tickets), name + '.tickets must be an array')