Browse Source

adding a mget ciao test

pull/34/head
Harish Krishna 10 years ago
parent
commit
ca10661457
  1. 16
      test/ciao/get/mget.coffee

16
test/ciao/get/mget.coffee

@ -0,0 +1,16 @@
#> valid get query
path: '/get?id=geoname:4221195&id=geoname:4193595'
#? 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…
Cancel
Save