From 94ce548fceb1087f01372304c49fbac550f5ce4a Mon Sep 17 00:00:00 2001 From: Harish Krishna Date: Wed, 1 Oct 2014 14:17:23 -0400 Subject: [PATCH] better naming --- test/unit/query/suggest.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/unit/query/suggest.js b/test/unit/query/suggest.js index 4af5d96d..a9f3888b 100644 --- a/test/unit/query/suggest.js +++ b/test/unit/query/suggest.js @@ -39,7 +39,7 @@ module.exports.tests.query = function(test, common) { }; module.exports.tests.precision = function(test, common) { - var inputs = [ + var test_cases = [ {zoom:1, precision:1}, {zoom:2, precision:1}, {zoom:3, precision:1}, @@ -62,11 +62,11 @@ module.exports.tests.precision = function(test, common) { {zoom:20, precision:5} ]; - inputs.forEach( function( input ){ - test('valid precision where zoom = ' + input.zoom, 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:input.zoom, + lat: 0, lon: 0, zoom:test_case.zoom, layers: ['test'] }); var expected = { @@ -78,7 +78,7 @@ module.exports.tests.precision = function(test, common) { context: { dataset: [ 'test' ], location: { - precision: input.precision, + precision: test_case.precision, value: [ 0, 0 ] } }