From ca10661457634856e4d915369b0ea4ae7be2b8ca Mon Sep 17 00:00:00 2001 From: Harish Krishna Date: Thu, 16 Oct 2014 17:03:36 -0400 Subject: [PATCH] adding a mget ciao test --- test/ciao/get/mget.coffee | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/ciao/get/mget.coffee diff --git a/test/ciao/get/mget.coffee b/test/ciao/get/mget.coffee new file mode 100644 index 00000000..ab5004ec --- /dev/null +++ b/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 \ No newline at end of file