Browse Source

Merge pull request #32 from pelias/grouping-precision-tests

valid precision - tests grouped together
pull/27/merge
Harish Krishna 10 years ago
parent
commit
63df11c208
  1. 7
      test/unit/query/suggest.js

7
test/unit/query/suggest.js

@ -63,9 +63,8 @@ module.exports.tests.precision = function(test, common) {
{zoom:null, precision:1},
{zoom:undefined, precision:1}
];
test('valid precision', function(t) {
test_cases.forEach( function( test_case ){
test('valid precision where zoom = ' + test_case.zoom, function(t) {
var query = generate({
input: 'test', size: 10,
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.end();
t.deepEqual(query, expected, 'valid suggest query for zoom = ' + test_case.zoom);
});
t.end();
});
};

Loading…
Cancel
Save