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.
14 lines
326 B
14 lines
326 B
11 years ago
|
#> valid search query
|
||
|
path: '/search?input=z&lat=0&lon=0'
|
||
|
|
||
|
#? 200 ok
|
||
|
response.statusCode.should.equal 200
|
||
|
|
||
|
#? valid response
|
||
|
now = new Date().getTime()
|
||
|
should.exist json
|
||
|
should.not.exist json.error
|
||
|
should.exist json.date
|
||
|
json.date.should.be.within now-2000, now+2000
|
||
|
should.exist json.body
|
||
|
json.body.should.be.instanceof Array
|