mirror of https://github.com/pelias/api.git
Harish Krishna
10 years ago
1 changed files with 16 additions and 0 deletions
@ -0,0 +1,16 @@
|
||||
|
||||
#> valid get query |
||||
path: '/get?id=geoname:4221195' |
||||
|
||||
#? 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' |
||||
json.features.should.be.instanceof Array |
Loading…
Reference in new issue