Browse Source

Whitespace

pull/271/head
Julian Simioni 9 years ago
parent
commit
66e1cab007
  1. 1
      query/reverse.js
  2. 1
      query/search.js
  3. 1
      sanitiser/_geo_search.js
  4. 1
      sanitiser/_text.js
  5. 4
      test/unit/query/reverse.js
  6. 1
      test/unit/sanitiser/search.js

1
query/reverse.js

@ -1,4 +1,3 @@
var peliasQuery = require('pelias-query'), var peliasQuery = require('pelias-query'),
defaults = require('./defaults'); defaults = require('./defaults');

1
query/search.js

@ -1,4 +1,3 @@
var peliasQuery = require('pelias-query'), var peliasQuery = require('pelias-query'),
defaults = require('./defaults'), defaults = require('./defaults'),
textParser = require('./text_parser'); textParser = require('./text_parser');

1
sanitiser/_geo_search.js

@ -1,4 +1,3 @@
var geo_common = require ('./_geo_common'); var geo_common = require ('./_geo_common');
var LAT_LON_IS_REQUIRED = false; var LAT_LON_IS_REQUIRED = false;

1
sanitiser/_text.js

@ -1,4 +1,3 @@
var check = require('check-types'), var check = require('check-types'),
query_parser = require('../helper/query_parser'); query_parser = require('../helper/query_parser');

4
test/unit/query/reverse.js

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

1
test/unit/sanitiser/search.js

@ -1,4 +1,3 @@
var search = require('../../../sanitiser/search'), var search = require('../../../sanitiser/search'),
_text = require('../sanitiser/_text'), _text = require('../sanitiser/_text'),
parser = require('../../../helper/query_parser'), parser = require('../../../helper/query_parser'),

Loading…
Cancel
Save