|
|
|
@ -21,6 +21,7 @@ module.exports.tests.query = function(test, common) {
|
|
|
|
|
t.deepEqual(compiled, expected, 'valid reverse query'); |
|
|
|
|
t.end(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
test('valid query with radius', function(t) { |
|
|
|
|
var query = generate({ |
|
|
|
|
lat: 29.49136, lon: -82.50622, boundary_circle_radius: 123 |
|
|
|
@ -32,6 +33,7 @@ module.exports.tests.query = function(test, common) {
|
|
|
|
|
t.deepEqual(compiled, expected, 'distance set to boundary circle radius'); |
|
|
|
|
t.end(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
test('valid query with boundary.circle lat/lon/radius', function(t) { |
|
|
|
|
var clean = { |
|
|
|
|
lat: 29.49136, |
|
|
|
@ -47,6 +49,7 @@ module.exports.tests.query = function(test, common) {
|
|
|
|
|
t.deepEqual(compiled, expected, 'point.lat/lon overrides boundary.circle.lat/lon'); |
|
|
|
|
t.end(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
test('size fuzz test', function(t) { |
|
|
|
|
// test different sizes
|
|
|
|
|
var sizes = [1,2,10,undefined,null]; |
|
|
|
@ -73,7 +76,6 @@ module.exports.tests.query = function(test, common) {
|
|
|
|
|
t.deepEqual(compiled, expected, 'valid reverse query with boundary.country'); |
|
|
|
|
t.end(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
module.exports.all = function (tape, common) { |
|
|
|
|