diff --git a/test/ciao/autocomplete/focus_point_missing_lat.coffee b/test/ciao/autocomplete/focus_point_missing_lat.coffee index a3da2f8a..300a3bd5 100644 --- a/test/ciao/autocomplete/focus_point_missing_lat.coffee +++ b/test/ciao/autocomplete/focus_point_missing_lat.coffee @@ -24,7 +24,7 @@ json.features.should.be.instanceof Array #? expected errors should.exist json.geocoding.errors -json.geocoding.errors.should.eql [ 'missing point param \'focus.point\' requires all of: \'lat\',\'lon\' to be present' ] +json.geocoding.errors.should.eql [ 'parameters focus.point.lat and focus.point.lon must both be specified' ] #? expected warnings should.not.exist json.geocoding.warnings @@ -33,4 +33,4 @@ should.not.exist json.geocoding.warnings json.geocoding.query['text'].should.eql 'a' json.geocoding.query['size'].should.eql 10 should.not.exist json.geocoding.query['focus.point.lat'] -should.not.exist json.geocoding.query['focus.point.lon'] \ No newline at end of file +should.not.exist json.geocoding.query['focus.point.lon'] diff --git a/test/ciao/autocomplete/focus_point_missing_lon.coffee b/test/ciao/autocomplete/focus_point_missing_lon.coffee index 8c9a8f48..fc1e507b 100644 --- a/test/ciao/autocomplete/focus_point_missing_lon.coffee +++ b/test/ciao/autocomplete/focus_point_missing_lon.coffee @@ -24,7 +24,7 @@ json.features.should.be.instanceof Array #? expected errors should.exist json.geocoding.errors -json.geocoding.errors.should.eql [ 'missing point param \'focus.point\' requires all of: \'lat\',\'lon\' to be present' ] +json.geocoding.errors.should.eql [ 'parameters focus.point.lat and focus.point.lon must both be specified' ] #? expected warnings should.not.exist json.geocoding.warnings @@ -33,4 +33,4 @@ should.not.exist json.geocoding.warnings json.geocoding.query['text'].should.eql 'a' json.geocoding.query['size'].should.eql 10 should.not.exist json.geocoding.query['focus.point.lat'] -should.not.exist json.geocoding.query['focus.point.lon'] \ No newline at end of file +should.not.exist json.geocoding.query['focus.point.lon'] diff --git a/test/ciao/reverse/boundary_circle_invalid_radius.coffee b/test/ciao/reverse/boundary_circle_invalid_radius.coffee index 3259f6b2..386ff167 100644 --- a/test/ciao/reverse/boundary_circle_invalid_radius.coffee +++ b/test/ciao/reverse/boundary_circle_invalid_radius.coffee @@ -27,12 +27,13 @@ should.exist json.geocoding.errors json.geocoding.errors.should.eql [ 'missing param \'boundary.circle.radius\'' ] #? expected warnings -should.not.exist json.geocoding.warnings +should.exist json.geocoding.warnings +json.geocoding.warnings.should.eql [ 'boundary.circle is currently unsupported' ] #? inputs -json.geocoding.query['size'].should.eql 10 -json.geocoding.query['point.lat'].should.eql 40.744243 -json.geocoding.query['point.lon'].should.eql -73.990342 -json.geocoding.query['boundary.circle.lat'].should.eql 40.744243 -json.geocoding.query['boundary.circle.lon'].should.eql -73.990342 -should.not.exist json.geocoding.query['boundary.circle.radius'] \ No newline at end of file +# json.geocoding.query['size'].should.eql 10 +# json.geocoding.query['point.lat'].should.eql 40.744243 +# json.geocoding.query['point.lon'].should.eql -73.990342 +# json.geocoding.query['boundary.circle.lat'].should.eql 40.744243 +# json.geocoding.query['boundary.circle.lon'].should.eql -73.990342 +# should.not.exist json.geocoding.query['boundary.circle.radius'] diff --git a/test/ciao/reverse/boundary_circle_valid_radius.coffee b/test/ciao/reverse/boundary_circle_valid_radius.coffee index 1664be63..9279eb70 100644 --- a/test/ciao/reverse/boundary_circle_valid_radius.coffee +++ b/test/ciao/reverse/boundary_circle_valid_radius.coffee @@ -26,12 +26,13 @@ json.features.should.be.instanceof Array should.not.exist json.geocoding.errors #? expected warnings -should.not.exist json.geocoding.warnings +should.exist json.geocoding.warnings +json.geocoding.warnings.should.eql [ 'boundary.circle is currently unsupported' ] #? inputs -json.geocoding.query['size'].should.eql 10 -json.geocoding.query['point.lat'].should.eql 40.744243 -json.geocoding.query['point.lon'].should.eql -73.990342 -json.geocoding.query['boundary.circle.lat'].should.eql 40.744243 -json.geocoding.query['boundary.circle.lon'].should.eql -73.990342 -json.geocoding.query['boundary.circle.radius'].should.eql 999.9 \ No newline at end of file +# json.geocoding.query['size'].should.eql 10 +# json.geocoding.query['point.lat'].should.eql 40.744243 +# json.geocoding.query['point.lon'].should.eql -73.990342 +# json.geocoding.query['boundary.circle.lat'].should.eql 40.744243 +# json.geocoding.query['boundary.circle.lon'].should.eql -73.990342 +# json.geocoding.query['boundary.circle.radius'].should.eql 999.9 diff --git a/test/ciao/reverse/point_missing_lat.coffee b/test/ciao/reverse/point_missing_lat.coffee index 649a5db6..7cd2f44a 100644 --- a/test/ciao/reverse/point_missing_lat.coffee +++ b/test/ciao/reverse/point_missing_lat.coffee @@ -24,7 +24,7 @@ json.features.should.be.instanceof Array #? expected errors should.exist json.geocoding.errors -json.geocoding.errors.should.eql [ 'missing point param \'point\' requires all of: \'lat\',\'lon\' to be present' ] +json.geocoding.errors.should.eql [ 'parameters point.lat and point.lon must both be specified' ] #? expected warnings should.not.exist json.geocoding.warnings @@ -32,4 +32,4 @@ should.not.exist json.geocoding.warnings #? inputs json.geocoding.query['size'].should.eql 10 should.not.exist json.geocoding.query['point.lat'] -should.not.exist json.geocoding.query['point.lon'] \ No newline at end of file +should.not.exist json.geocoding.query['point.lon'] diff --git a/test/ciao/reverse/point_missing_lon.coffee b/test/ciao/reverse/point_missing_lon.coffee index e28f2a1b..a206726a 100644 --- a/test/ciao/reverse/point_missing_lon.coffee +++ b/test/ciao/reverse/point_missing_lon.coffee @@ -24,7 +24,7 @@ json.features.should.be.instanceof Array #? expected errors should.exist json.geocoding.errors -json.geocoding.errors.should.eql [ 'missing point param \'point\' requires all of: \'lat\',\'lon\' to be present' ] +json.geocoding.errors.should.eql [ 'parameters point.lat and point.lon must both be specified' ] #? expected warnings should.not.exist json.geocoding.warnings @@ -32,4 +32,4 @@ should.not.exist json.geocoding.warnings #? inputs json.geocoding.query['size'].should.eql 10 should.not.exist json.geocoding.query['point.lat'] -should.not.exist json.geocoding.query['point.lon'] \ No newline at end of file +should.not.exist json.geocoding.query['point.lon'] diff --git a/test/ciao/reverse/sources_multiple.coffee b/test/ciao/reverse/sources_multiple.coffee index 9de6389f..8728109c 100644 --- a/test/ciao/reverse/sources_multiple.coffee +++ b/test/ciao/reverse/sources_multiple.coffee @@ -31,4 +31,4 @@ should.not.exist json.geocoding.warnings #? inputs json.geocoding.query['size'].should.eql 10 json.geocoding.query.types['from_sources'].should.eql ["osmaddress","osmnode","osmway","geoname"] -json.geocoding.query['type'].should.eql ["osmaddress","osmnode","osmway","geoname"] \ No newline at end of file +json.geocoding.query['type'].should.eql ["geoname","osmnode","osmway","osmaddress"] diff --git a/test/ciao/reverse/sources_single.coffee b/test/ciao/reverse/sources_single.coffee index ad4628f4..2c638503 100644 --- a/test/ciao/reverse/sources_single.coffee +++ b/test/ciao/reverse/sources_single.coffee @@ -31,4 +31,4 @@ should.not.exist json.geocoding.warnings #? inputs json.geocoding.query['size'].should.eql 10 json.geocoding.query.types['from_sources'].should.eql ["osmaddress","osmnode","osmway"] -json.geocoding.query['type'].should.eql ["osmaddress","osmnode","osmway"] \ No newline at end of file +json.geocoding.query['type'].should.eql ["osmnode","osmway","osmaddress"] diff --git a/test/ciao/search/boundary_circle_invalid_radius.coffee b/test/ciao/search/boundary_circle_invalid_radius.coffee index d73b99d2..67c573b6 100644 --- a/test/ciao/search/boundary_circle_invalid_radius.coffee +++ b/test/ciao/search/boundary_circle_invalid_radius.coffee @@ -32,6 +32,6 @@ should.not.exist json.geocoding.warnings #? inputs json.geocoding.query['text'].should.eql 'a' json.geocoding.query['size'].should.eql 10 -json.geocoding.query['boundary.circle.lat'].should.eql 40.744243 -json.geocoding.query['boundary.circle.lon'].should.eql -73.990342 -should.not.exist json.geocoding.query['boundary.circle.radius'] \ No newline at end of file +should.not.exist json.geocoding.query['boundary.circle.lat'] +should.not.exist json.geocoding.query['boundary.circle.lon'] +should.not.exist json.geocoding.query['boundary.circle.radius'] diff --git a/test/ciao/search/boundary_circle_missing_lat.coffee b/test/ciao/search/boundary_circle_missing_lat.coffee index ccc7dcc0..e46b079a 100644 --- a/test/ciao/search/boundary_circle_missing_lat.coffee +++ b/test/ciao/search/boundary_circle_missing_lat.coffee @@ -24,7 +24,7 @@ json.features.should.be.instanceof Array #? expected errors should.exist json.geocoding.errors -json.geocoding.errors.should.eql [ 'missing circle param \'boundary.circle\' requires all of: \'lat\',\'lon\' to be present' ] +json.geocoding.errors.should.eql [ 'parameters boundary.circle.lat and boundary.circle.lon must both be specified' ] #? expected warnings should.not.exist json.geocoding.warnings @@ -32,6 +32,6 @@ should.not.exist json.geocoding.warnings #? inputs json.geocoding.query['text'].should.eql 'a' json.geocoding.query['size'].should.eql 10 +json.geocoding.query['boundary.circle.radius'].should.eql 100 should.not.exist json.geocoding.query['boundary.circle.lat'] should.not.exist json.geocoding.query['boundary.circle.lon'] -should.not.exist json.geocoding.query['boundary.circle.radius'] \ No newline at end of file diff --git a/test/ciao/search/boundary_circle_missing_lon.coffee b/test/ciao/search/boundary_circle_missing_lon.coffee index 63a1d794..45bc0120 100644 --- a/test/ciao/search/boundary_circle_missing_lon.coffee +++ b/test/ciao/search/boundary_circle_missing_lon.coffee @@ -24,7 +24,7 @@ json.features.should.be.instanceof Array #? expected errors should.exist json.geocoding.errors -json.geocoding.errors.should.eql [ 'missing circle param \'boundary.circle\' requires all of: \'lat\',\'lon\' to be present' ] +json.geocoding.errors.should.eql [ 'parameters boundary.circle.lat and boundary.circle.lon must both be specified' ] #? expected warnings should.not.exist json.geocoding.warnings @@ -32,6 +32,6 @@ should.not.exist json.geocoding.warnings #? inputs json.geocoding.query['text'].should.eql 'a' json.geocoding.query['size'].should.eql 10 +json.geocoding.query['boundary.circle.radius'].should.eql 100 should.not.exist json.geocoding.query['boundary.circle.lat'] should.not.exist json.geocoding.query['boundary.circle.lon'] -should.not.exist json.geocoding.query['boundary.circle.radius'] \ No newline at end of file diff --git a/test/ciao/search/boundary_rect_partially_specified.coffee b/test/ciao/search/boundary_rect_partially_specified.coffee index c00e77bc..0c0e72e1 100644 --- a/test/ciao/search/boundary_rect_partially_specified.coffee +++ b/test/ciao/search/boundary_rect_partially_specified.coffee @@ -24,7 +24,7 @@ json.features.should.be.instanceof Array #? expected errors should.exist json.geocoding.errors -json.geocoding.errors.should.eql [ 'missing rect param \'boundary.rect\' requires all of: \'min_lat\',\'max_lat\',\'min_lon\',\'max_lon\' to be present' ] +json.geocoding.errors.should.eql [ 'parameters boundary.rect.min_lat, boundary.rect.max_lat, boundary.rect.min_lon and boundary.rect.max_lon must all be specified' ] #? expected warnings should.not.exist json.geocoding.warnings @@ -35,4 +35,4 @@ json.geocoding.query['size'].should.eql 10 should.not.exist json.geocoding.query['boundary.rect.min_lat'] should.not.exist json.geocoding.query['boundary.rect.max_lat'] should.not.exist json.geocoding.query['boundary.rect.min_lon'] -should.not.exist json.geocoding.query['boundary.rect.max_lon'] \ No newline at end of file +should.not.exist json.geocoding.query['boundary.rect.max_lon'] diff --git a/test/ciao/search/focus_point_missing_lat.coffee b/test/ciao/search/focus_point_missing_lat.coffee index 0a730f41..6e534133 100644 --- a/test/ciao/search/focus_point_missing_lat.coffee +++ b/test/ciao/search/focus_point_missing_lat.coffee @@ -24,7 +24,7 @@ json.features.should.be.instanceof Array #? expected errors should.exist json.geocoding.errors -json.geocoding.errors.should.eql [ 'missing point param \'focus.point\' requires all of: \'lat\',\'lon\' to be present' ] +json.geocoding.errors.should.eql [ 'parameters focus.point.lat and focus.point.lon must both be specified' ] #? expected warnings should.not.exist json.geocoding.warnings @@ -33,4 +33,4 @@ should.not.exist json.geocoding.warnings json.geocoding.query['text'].should.eql 'a' json.geocoding.query['size'].should.eql 10 should.not.exist json.geocoding.query['focus.point.lat'] -should.not.exist json.geocoding.query['focus.point.lon'] \ No newline at end of file +should.not.exist json.geocoding.query['focus.point.lon'] diff --git a/test/ciao/search/focus_point_missing_lon.coffee b/test/ciao/search/focus_point_missing_lon.coffee index e712764c..cf81b267 100644 --- a/test/ciao/search/focus_point_missing_lon.coffee +++ b/test/ciao/search/focus_point_missing_lon.coffee @@ -24,7 +24,7 @@ json.features.should.be.instanceof Array #? expected errors should.exist json.geocoding.errors -json.geocoding.errors.should.eql [ 'missing point param \'focus.point\' requires all of: \'lat\',\'lon\' to be present' ] +json.geocoding.errors.should.eql [ 'parameters focus.point.lat and focus.point.lon must both be specified' ] #? expected warnings should.not.exist json.geocoding.warnings @@ -33,4 +33,4 @@ should.not.exist json.geocoding.warnings json.geocoding.query['text'].should.eql 'a' json.geocoding.query['size'].should.eql 10 should.not.exist json.geocoding.query['focus.point.lat'] -should.not.exist json.geocoding.query['focus.point.lon'] \ No newline at end of file +should.not.exist json.geocoding.query['focus.point.lon'] diff --git a/test/ciao/search/sources_multiple.coffee b/test/ciao/search/sources_multiple.coffee index fa32183f..fa5a650c 100644 --- a/test/ciao/search/sources_multiple.coffee +++ b/test/ciao/search/sources_multiple.coffee @@ -1,10 +1,10 @@ #> sources filter -path: '/v1/search?text=a&sources=openstreetmap,geonames' +path: "/v1/search?text=a&sources=openstreetmap,geonames" #? 200 ok response.statusCode.should.be.equal 200 -response.should.have.header 'charset', 'utf8' +response.should.have.header "charset", 'utf8' response.should.have.header 'content-type', 'application/json; charset=utf-8' #? valid geocoding block @@ -32,4 +32,4 @@ should.not.exist json.geocoding.warnings json.geocoding.query['text'].should.eql 'a' json.geocoding.query['size'].should.eql 10 json.geocoding.query.types['from_sources'].should.eql ["osmaddress","osmnode","osmway","geoname"] -json.geocoding.query['type'].should.eql ["osmaddress","osmnode","osmway","geoname"] \ No newline at end of file +json.geocoding.query['type'].should.eql ["geoname","osmnode","osmway","osmaddress"] diff --git a/test/ciao/search/sources_single.coffee b/test/ciao/search/sources_single.coffee index a32ad0a7..3b3e0bf4 100644 --- a/test/ciao/search/sources_single.coffee +++ b/test/ciao/search/sources_single.coffee @@ -32,4 +32,4 @@ should.not.exist json.geocoding.warnings json.geocoding.query['text'].should.eql 'a' json.geocoding.query['size'].should.eql 10 json.geocoding.query.types['from_sources'].should.eql ["osmaddress","osmnode","osmway"] -json.geocoding.query['type'].should.eql ["osmaddress","osmnode","osmway"] \ No newline at end of file +json.geocoding.query['type'].should.eql ["osmnode","osmway","osmaddress"]