mirror of https://github.com/pelias/api.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
359 B
17 lines
359 B
10 years ago
|
|
||
10 years ago
|
#> valid doc query
|
||
|
path: '/doc?id=geoname:4221195&id=geoname:4193595'
|
||
10 years ago
|
|
||
|
#? 200 ok
|
||
|
response.statusCode.should.equal 200
|
||
|
|
||
|
#? valid response
|
||
|
now = new Date().getTime()
|
||
|
should.exist json
|
||
|
should.not.exist json.error
|
||
|
json.date.should.be.within now-5000, now+5000
|
||
|
|
||
|
#? valid geojson
|
||
|
json.type.should.equal 'FeatureCollection'
|
||
9 years ago
|
json.features.should.be.instanceof Array
|