Browse Source

Merge branch 'master' into mget

pull/35/head
Harish Krishna 10 years ago
parent
commit
b7115db478
  1. 9
      test/unit/query/suggest.js

9
test/unit/query/suggest.js

@ -63,9 +63,8 @@ module.exports.tests.precision = function(test, common) {
{zoom:null, precision:1}, {zoom:null, precision:1},
{zoom:undefined, precision:1} {zoom:undefined, precision:1}
]; ];
test('valid precision', function(t) {
test_cases.forEach( function( test_case ){ test_cases.forEach( function( test_case ){
test('valid precision where zoom = ' + test_case.zoom, function(t) {
var query = generate({ var query = generate({
input: 'test', size: 10, input: 'test', size: 10,
lat: 0, lon: 0, zoom:test_case.zoom, lat: 0, lon: 0, zoom:test_case.zoom,
@ -87,9 +86,9 @@ module.exports.tests.precision = function(test, common) {
} }
} }
}; };
t.deepEqual(query, expected, 'valid suggest query'); t.deepEqual(query, expected, 'valid suggest query for zoom = ' + test_case.zoom);
t.end();
}); });
t.end();
}); });
}; };

Loading…
Cancel
Save