diff --git a/.travis.yml b/.travis.yml index 3ce77f80..f91c3dfc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,21 +3,17 @@ language: node_js notifications: email: false node_js: - - 4 - 6 + - 8 matrix: fast_finish: true -env: - global: - - BUILD_LEADER_ID=2 script: npm run travis before_install: - - npm i -g npm@^3.0.0 + - npm i -g npm before_script: - npm prune after_success: - - npm install -g npx - - npx -p node@8 npm run semantic-release + - npm run semantic-release branches: except: - /^v\d+\.\d+\.\d+$/ diff --git a/controller/markdownToHtml.js b/controller/markdownToHtml.js index 656afe01..774127bb 100644 --- a/controller/markdownToHtml.js +++ b/controller/markdownToHtml.js @@ -1,4 +1,3 @@ - var markdown = require('markdown').markdown; var fs = require('fs'); diff --git a/controller/place.js b/controller/place.js index 51ce58d9..ac851359 100644 --- a/controller/place.js +++ b/controller/place.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); const retry = require('retry'); diff --git a/controller/search.js b/controller/search.js index 721c0dde..cc04f19e 100644 --- a/controller/search.js +++ b/controller/search.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); const searchService = require('../service/search'); diff --git a/helper/debug.js b/helper/debug.js index cf8b833c..79279c66 100644 --- a/helper/debug.js +++ b/helper/debug.js @@ -1,4 +1,3 @@ -'use strict'; const _ = require('lodash'); class Debug { diff --git a/helper/fieldValue.js b/helper/fieldValue.js index 6a9c5c10..11ddef2d 100644 --- a/helper/fieldValue.js +++ b/helper/fieldValue.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); function getStringValue(property) { diff --git a/helper/geojsonify.js b/helper/geojsonify.js index 5c571fa7..036fe773 100644 --- a/helper/geojsonify.js +++ b/helper/geojsonify.js @@ -1,4 +1,3 @@ - const GeoJSON = require('geojson'); const extent = require('@mapbox/geojson-extent'); const logger = require('pelias-logger').get('geojsonify'); diff --git a/helper/geojsonify_place_details.js b/helper/geojsonify_place_details.js index 4c2b60b7..91e12d73 100644 --- a/helper/geojsonify_place_details.js +++ b/helper/geojsonify_place_details.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); const field = require('./fieldValue'); diff --git a/helper/stackTraceLine.js b/helper/stackTraceLine.js index 67e56de2..e1312ae6 100644 --- a/helper/stackTraceLine.js +++ b/helper/stackTraceLine.js @@ -1,5 +1,3 @@ -'use strict'; - module.exports = () => { const stack = new Error().stack.split('\n'); let targetLine; diff --git a/middleware/404.js b/middleware/404.js index 65c25467..db4d013f 100644 --- a/middleware/404.js +++ b/middleware/404.js @@ -1,4 +1,3 @@ - // handle not found errors function middleware(req, res) { res.header('Cache-Control','public'); diff --git a/middleware/access_log.js b/middleware/access_log.js index d87a2e32..e6df58d0 100644 --- a/middleware/access_log.js +++ b/middleware/access_log.js @@ -2,8 +2,6 @@ * Create a middleware that prints access logs via pelias-logger. */ -'use strict'; - var url = require( 'url' ); var _ = require( 'lodash' ); diff --git a/middleware/changeLanguage.js b/middleware/changeLanguage.js index 91bd5ba0..3d02a296 100644 --- a/middleware/changeLanguage.js +++ b/middleware/changeLanguage.js @@ -1,4 +1,3 @@ - var logger = require( 'pelias-logger' ).get( 'api' ); const _ = require('lodash'); diff --git a/middleware/confidenceScoreFallback.js b/middleware/confidenceScoreFallback.js index 488bd721..96d378b8 100644 --- a/middleware/confidenceScoreFallback.js +++ b/middleware/confidenceScoreFallback.js @@ -1,5 +1,3 @@ -'use strict'; - /** * * Basic confidence score should be computed and returned for each item in the results. diff --git a/middleware/cors.js b/middleware/cors.js index 6d30529f..51ee56e4 100644 --- a/middleware/cors.js +++ b/middleware/cors.js @@ -1,4 +1,3 @@ - function middleware(req, res, next){ res.header('Access-Control-Allow-Origin', '*'); res.header('Access-Control-Allow-Methods', 'GET, OPTIONS'); diff --git a/middleware/jsonp.js b/middleware/jsonp.js index 1a54716e..3f06dbf6 100644 --- a/middleware/jsonp.js +++ b/middleware/jsonp.js @@ -1,4 +1,3 @@ - function middleware(req, res, next){ // store old json function diff --git a/middleware/normalizeParentIds.js b/middleware/normalizeParentIds.js index 67a4874a..b5e02869 100644 --- a/middleware/normalizeParentIds.js +++ b/middleware/normalizeParentIds.js @@ -1,5 +1,3 @@ -'use strict'; - const logger = require('pelias-logger').get('api'); const Document = require('pelias-model').Document; const placeTypes = require('../helper/placeTypes'); diff --git a/middleware/options.js b/middleware/options.js index f6ca8767..7bb39093 100644 --- a/middleware/options.js +++ b/middleware/options.js @@ -1,4 +1,3 @@ - /** this functionality is required by CORS as the browser will send an HTTP OPTIONS request before performing the CORS request. diff --git a/middleware/renamePlacenames.js b/middleware/renamePlacenames.js index 9f63cb6e..d1f36d73 100644 --- a/middleware/renamePlacenames.js +++ b/middleware/renamePlacenames.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); const PARENT_PROPS = require('../helper/placeTypes'); diff --git a/middleware/requestLanguage.js b/middleware/requestLanguage.js index c7532fc9..d6e154ab 100644 --- a/middleware/requestLanguage.js +++ b/middleware/requestLanguage.js @@ -1,4 +1,3 @@ - const _ = require('lodash'); const logger = require( 'pelias-logger' ).get( 'api' ); diff --git a/package.json b/package.json index aa7939b1..20e4d849 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "url": "https://github.com/pelias/api/issues" }, "engines": { - "node": ">=4.0.0" + "node": ">=6.0.0" }, "dependencies": { "addressit": "1.5.0", diff --git a/query/autocomplete.js b/query/autocomplete.js index e7dbed3f..8d4cf257 100644 --- a/query/autocomplete.js +++ b/query/autocomplete.js @@ -1,5 +1,3 @@ -'use strict'; - const peliasQuery = require('pelias-query'); const defaults = require('./autocomplete_defaults'); const textParser = require('./text_parser_addressit'); diff --git a/query/autocomplete_defaults.js b/query/autocomplete_defaults.js index 34f396ae..dbba5861 100644 --- a/query/autocomplete_defaults.js +++ b/query/autocomplete_defaults.js @@ -1,4 +1,3 @@ - var peliasQuery = require('pelias-query'); var _ = require('lodash'); diff --git a/query/reverse.js b/query/reverse.js index a9c1d25c..1e928344 100644 --- a/query/reverse.js +++ b/query/reverse.js @@ -1,5 +1,3 @@ -'use strict'; - const peliasQuery = require('pelias-query'); const defaults = require('./reverse_defaults'); const check = require('check-types'); diff --git a/query/reverse_defaults.js b/query/reverse_defaults.js index bce72057..cbcf7a65 100644 --- a/query/reverse_defaults.js +++ b/query/reverse_defaults.js @@ -1,4 +1,3 @@ - var peliasQuery = require('pelias-query'); var _ = require('lodash'); diff --git a/query/search.js b/query/search.js index 991e239c..26ae1e40 100644 --- a/query/search.js +++ b/query/search.js @@ -1,5 +1,3 @@ -'use strict'; - const peliasQuery = require('pelias-query'); const defaults = require('./search_defaults'); const textParser = require('./text_parser'); diff --git a/query/search_defaults.js b/query/search_defaults.js index c0d2a6a0..92154ee8 100644 --- a/query/search_defaults.js +++ b/query/search_defaults.js @@ -1,4 +1,3 @@ - var peliasQuery = require('pelias-query'); var _ = require('lodash'); diff --git a/query/search_original.js b/query/search_original.js index a6b666d6..6b9856b7 100644 --- a/query/search_original.js +++ b/query/search_original.js @@ -1,5 +1,3 @@ -'use strict'; - const peliasQuery = require('pelias-query'); const defaults = require('./search_defaults'); const textParser = require('./text_parser_addressit'); diff --git a/query/text_parser_addressit.js b/query/text_parser_addressit.js index 84979c15..8a3907a8 100644 --- a/query/text_parser_addressit.js +++ b/query/text_parser_addressit.js @@ -1,4 +1,3 @@ - var logger = require('pelias-logger').get('api'); var placeTypes = require('../helper/placeTypes'); diff --git a/query/view/boost_exact_matches.js b/query/view/boost_exact_matches.js index 9af56cfb..06155260 100644 --- a/query/view/boost_exact_matches.js +++ b/query/view/boost_exact_matches.js @@ -1,4 +1,3 @@ - var peliasQuery = require('pelias-query'), searchDefaults = require('../search_defaults'); diff --git a/query/view/focus_selected_layers.js b/query/view/focus_selected_layers.js index 9d23998c..4fda1780 100644 --- a/query/view/focus_selected_layers.js +++ b/query/view/focus_selected_layers.js @@ -1,4 +1,3 @@ - var peliasQuery = require('pelias-query'); /** diff --git a/query/view/ngrams_last_token_only.js b/query/view/ngrams_last_token_only.js index 12be4584..db2862c3 100644 --- a/query/view/ngrams_last_token_only.js +++ b/query/view/ngrams_last_token_only.js @@ -1,4 +1,3 @@ - var peliasQuery = require('pelias-query'), ngrams_strict = require('./ngrams_strict'); diff --git a/query/view/ngrams_strict.js b/query/view/ngrams_strict.js index b0d7ae94..f5fd815e 100644 --- a/query/view/ngrams_strict.js +++ b/query/view/ngrams_strict.js @@ -1,4 +1,3 @@ - var peliasQuery = require('pelias-query'); /** diff --git a/query/view/phrase_first_tokens_only.js b/query/view/phrase_first_tokens_only.js index 7ab4539b..795e4beb 100644 --- a/query/view/phrase_first_tokens_only.js +++ b/query/view/phrase_first_tokens_only.js @@ -1,4 +1,3 @@ - var peliasQuery = require('pelias-query'); /** diff --git a/query/view/pop_subquery.js b/query/view/pop_subquery.js index fc8f6804..4474fa4d 100644 --- a/query/view/pop_subquery.js +++ b/query/view/pop_subquery.js @@ -1,4 +1,3 @@ - var peliasQuery = require('pelias-query'), check = require('check-types'); diff --git a/sanitizer/_single_scalar_parameters.js b/sanitizer/_single_scalar_parameters.js index 4c49fc21..2363ef65 100644 --- a/sanitizer/_single_scalar_parameters.js +++ b/sanitizer/_single_scalar_parameters.js @@ -1,4 +1,3 @@ - var _ = require('lodash'), check = require('check-types'); diff --git a/sanitizer/_tokenizer.js b/sanitizer/_tokenizer.js index 18b5d3e0..081a9121 100644 --- a/sanitizer/_tokenizer.js +++ b/sanitizer/_tokenizer.js @@ -1,4 +1,3 @@ - var check = require('check-types'); /** diff --git a/sanitizer/place.js b/sanitizer/place.js index 4d158dc3..9b7c7fdb 100644 --- a/sanitizer/place.js +++ b/sanitizer/place.js @@ -1,4 +1,3 @@ - var sanitizeAll = require('../sanitizer/sanitizeAll'), sanitizers = { singleScalarParameters: require('../sanitizer/_single_scalar_parameters')(), diff --git a/sanitizer/reverse.js b/sanitizer/reverse.js index 457e81a5..ce14e862 100644 --- a/sanitizer/reverse.js +++ b/sanitizer/reverse.js @@ -1,4 +1,3 @@ - var type_mapping = require('../helper/type_mapping'); var sanitizeAll = require('../sanitizer/sanitizeAll'), sanitizers = { diff --git a/sanitizer/sanitizeAll.js b/sanitizer/sanitizeAll.js index af6e1510..113c3116 100644 --- a/sanitizer/sanitizeAll.js +++ b/sanitizer/sanitizeAll.js @@ -1,4 +1,3 @@ -'use strict'; function sanitize( req, sanitizers ){ // init an object to store clean (sanitized) input parameters if not initialized req.clean = req.clean || {}; diff --git a/sanitizer/wrap.js b/sanitizer/wrap.js index bc8a9cd2..bca70220 100644 --- a/sanitizer/wrap.js +++ b/sanitizer/wrap.js @@ -1,4 +1,3 @@ - /** normalize co-ordinates that lie outside of the normal ranges. diff --git a/schema.js b/schema.js index 440da818..00c31a2e 100644 --- a/schema.js +++ b/schema.js @@ -1,4 +1,3 @@ -'use strict'; const Joi = require('joi'); diff --git a/service/configurations/Interpolation.js b/service/configurations/Interpolation.js index 1bb08d77..ff7c685b 100644 --- a/service/configurations/Interpolation.js +++ b/service/configurations/Interpolation.js @@ -1,5 +1,3 @@ -'use strict'; - const url = require('url'); const _ = require('lodash'); diff --git a/service/configurations/Language.js b/service/configurations/Language.js index ef528d38..c20fa861 100644 --- a/service/configurations/Language.js +++ b/service/configurations/Language.js @@ -1,5 +1,3 @@ -'use strict'; - const url = require('url'); const _ = require('lodash'); diff --git a/service/configurations/Libpostal.js b/service/configurations/Libpostal.js index 9cf1de2b..0a895846 100644 --- a/service/configurations/Libpostal.js +++ b/service/configurations/Libpostal.js @@ -1,5 +1,3 @@ -'use strict'; - const url = require('url'); const ServiceConfiguration = require('pelias-microservice-wrapper').ServiceConfiguration; diff --git a/service/configurations/PlaceHolder.js b/service/configurations/PlaceHolder.js index c25f8abc..055863a9 100644 --- a/service/configurations/PlaceHolder.js +++ b/service/configurations/PlaceHolder.js @@ -1,5 +1,3 @@ -'use strict'; - const url = require('url'); const _ = require('lodash'); diff --git a/service/configurations/PointInPolygon.js b/service/configurations/PointInPolygon.js index 58b52093..e13986fc 100644 --- a/service/configurations/PointInPolygon.js +++ b/service/configurations/PointInPolygon.js @@ -1,5 +1,3 @@ -'use strict'; - const url = require('url'); const _ = require('lodash'); diff --git a/service/mget.js b/service/mget.js index b68a5bed..346ddb90 100644 --- a/service/mget.js +++ b/service/mget.js @@ -1,4 +1,3 @@ - /** query must be an array of hashes, structured like so: diff --git a/service/search.js b/service/search.js index dcdd7093..1db7cef6 100644 --- a/service/search.js +++ b/service/search.js @@ -1,4 +1,3 @@ - /** cmd can be any valid ES query command diff --git a/test/ciao_test_data.js b/test/ciao_test_data.js index 55872f67..91eaf11d 100644 --- a/test/ciao_test_data.js +++ b/test/ciao_test_data.js @@ -1,4 +1,3 @@ - /** Test data required by the ciao test suite. diff --git a/test/unit/app.js b/test/unit/app.js index 479e2af0..ec786f2f 100644 --- a/test/unit/app.js +++ b/test/unit/app.js @@ -1,5 +1,3 @@ -'use strict'; - const proxyquire = require('proxyquire').noCallThru(); module.exports.tests = {}; diff --git a/test/unit/controller/coarse_reverse.js b/test/unit/controller/coarse_reverse.js index df231075..2a13d4a3 100644 --- a/test/unit/controller/coarse_reverse.js +++ b/test/unit/controller/coarse_reverse.js @@ -1,5 +1,3 @@ -'use strict'; - const setup = require('../../../controller/coarse_reverse'); const proxyquire = require('proxyquire').noCallThru(); const _ = require('lodash'); diff --git a/test/unit/controller/index.js b/test/unit/controller/index.js index cffe1030..b6a5a396 100644 --- a/test/unit/controller/index.js +++ b/test/unit/controller/index.js @@ -1,4 +1,3 @@ - var setup = require('../../../controller/markdownToHtml'); module.exports.tests = {}; diff --git a/test/unit/controller/libpostal.js b/test/unit/controller/libpostal.js index cf62fff5..56b47521 100644 --- a/test/unit/controller/libpostal.js +++ b/test/unit/controller/libpostal.js @@ -1,5 +1,3 @@ -'use strict'; - const proxyquire = require('proxyquire').noCallThru(); const libpostal = require('../../../controller/libpostal'); const _ = require('lodash'); diff --git a/test/unit/controller/place.js b/test/unit/controller/place.js index b76d69c9..533db310 100644 --- a/test/unit/controller/place.js +++ b/test/unit/controller/place.js @@ -1,5 +1,3 @@ -'use strict'; - const setup = require('../../../controller/place'); const proxyquire = require('proxyquire').noCallThru(); diff --git a/test/unit/controller/placeholder.js b/test/unit/controller/placeholder.js index efb0fc2a..82ace9bd 100644 --- a/test/unit/controller/placeholder.js +++ b/test/unit/controller/placeholder.js @@ -1,5 +1,3 @@ -'use strict'; - const placeholder = require('../../../controller/placeholder'); const proxyquire = require('proxyquire').noCallThru(); const mock_logger = require('pelias-mock-logger'); diff --git a/test/unit/controller/predicates/has_parsed_text_properties.js b/test/unit/controller/predicates/has_parsed_text_properties.js index 9307d46d..b1635d94 100644 --- a/test/unit/controller/predicates/has_parsed_text_properties.js +++ b/test/unit/controller/predicates/has_parsed_text_properties.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); const has_parsed_text_properties = require('../../../../controller/predicates/has_parsed_text_properties'); diff --git a/test/unit/controller/predicates/has_request_errors.js b/test/unit/controller/predicates/has_request_errors.js index bd1868aa..437ecaf7 100644 --- a/test/unit/controller/predicates/has_request_errors.js +++ b/test/unit/controller/predicates/has_request_errors.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); const has_request_errors = require('../../../../controller/predicates/has_request_errors'); diff --git a/test/unit/controller/predicates/has_request_parameter.js b/test/unit/controller/predicates/has_request_parameter.js index 099ba39d..3a4e33b1 100644 --- a/test/unit/controller/predicates/has_request_parameter.js +++ b/test/unit/controller/predicates/has_request_parameter.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); const has_request_parameter = require('../../../../controller/predicates/has_request_parameter'); diff --git a/test/unit/controller/predicates/has_response_data.js b/test/unit/controller/predicates/has_response_data.js index f073fc4d..881a6a72 100644 --- a/test/unit/controller/predicates/has_response_data.js +++ b/test/unit/controller/predicates/has_response_data.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); const has_response_data = require('../../../../controller/predicates/has_response_data'); diff --git a/test/unit/controller/predicates/has_results_at_layers.js b/test/unit/controller/predicates/has_results_at_layers.js index f81e9045..608e2ff1 100644 --- a/test/unit/controller/predicates/has_results_at_layers.js +++ b/test/unit/controller/predicates/has_results_at_layers.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); const has_results_at_layers = require('../../../../controller/predicates/has_results_at_layers'); diff --git a/test/unit/controller/predicates/is_addressit_parse.js b/test/unit/controller/predicates/is_addressit_parse.js index d11734ba..219c36ff 100644 --- a/test/unit/controller/predicates/is_addressit_parse.js +++ b/test/unit/controller/predicates/is_addressit_parse.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); const is_addressit_parse = require('../../../../controller/predicates/is_addressit_parse'); diff --git a/test/unit/controller/predicates/is_admin_only_analysis.js b/test/unit/controller/predicates/is_admin_only_analysis.js index 4e90bf34..1f8232e1 100644 --- a/test/unit/controller/predicates/is_admin_only_analysis.js +++ b/test/unit/controller/predicates/is_admin_only_analysis.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); const is_admin_only_analysis = require('../../../../controller/predicates/is_admin_only_analysis'); diff --git a/test/unit/controller/predicates/is_coarse_reverse.js b/test/unit/controller/predicates/is_coarse_reverse.js index 33b0611d..e92bb177 100644 --- a/test/unit/controller/predicates/is_coarse_reverse.js +++ b/test/unit/controller/predicates/is_coarse_reverse.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); const is_coarse_reverse = require('../../../../controller/predicates/is_coarse_reverse'); diff --git a/test/unit/controller/predicates/is_only_non_admin_layers.js b/test/unit/controller/predicates/is_only_non_admin_layers.js index 51e1b796..eb0ba2b1 100644 --- a/test/unit/controller/predicates/is_only_non_admin_layers.js +++ b/test/unit/controller/predicates/is_only_non_admin_layers.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); const is_only_non_admin_layers = require('../../../../controller/predicates/is_only_non_admin_layers'); diff --git a/test/unit/controller/predicates/is_request_sources_only_whosonfirst.js b/test/unit/controller/predicates/is_request_sources_only_whosonfirst.js index 24f861ad..c3686c47 100644 --- a/test/unit/controller/predicates/is_request_sources_only_whosonfirst.js +++ b/test/unit/controller/predicates/is_request_sources_only_whosonfirst.js @@ -1,5 +1,3 @@ -'use strict'; - const _ = require('lodash'); const is_request_sources_only_whosonfirst = require('../../../../controller/predicates/is_request_sources_only_whosonfirst'); diff --git a/test/unit/controller/search.js b/test/unit/controller/search.js index 3f80f7d1..0e274d4e 100644 --- a/test/unit/controller/search.js +++ b/test/unit/controller/search.js @@ -1,5 +1,3 @@ -'use strict'; - const setup = require('../../../controller/search'); const proxyquire = require('proxyquire').noCallThru(); diff --git a/test/unit/controller/search_with_ids.js b/test/unit/controller/search_with_ids.js index ff884be9..250e32f9 100644 --- a/test/unit/controller/search_with_ids.js +++ b/test/unit/controller/search_with_ids.js @@ -1,5 +1,3 @@ -'use strict'; - const setup = require('../../../controller/search_with_ids'); const proxyquire = require('proxyquire').noCallThru(); const mocklogger = require('pelias-mock-logger'); diff --git a/test/unit/controller/structured_libpostal.js b/test/unit/controller/structured_libpostal.js index eb4aea12..142d8260 100644 --- a/test/unit/controller/structured_libpostal.js +++ b/test/unit/controller/structured_libpostal.js @@ -1,5 +1,3 @@ -'use strict'; - const proxyquire = require('proxyquire').noCallThru(); const libpostal = require('../../../controller/structured_libpostal'); const _ = require('lodash'); diff --git a/test/unit/fixture/autocomplete_boundary_country.js b/test/unit/fixture/autocomplete_boundary_country.js index f0ac8fb7..928c3efe 100644 --- a/test/unit/fixture/autocomplete_boundary_country.js +++ b/test/unit/fixture/autocomplete_boundary_country.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/autocomplete_linguistic_final_token.js b/test/unit/fixture/autocomplete_linguistic_final_token.js index c27e64f5..4f250ec3 100644 --- a/test/unit/fixture/autocomplete_linguistic_final_token.js +++ b/test/unit/fixture/autocomplete_linguistic_final_token.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/autocomplete_linguistic_focus.js b/test/unit/fixture/autocomplete_linguistic_focus.js index d6aa0aa7..219bea36 100644 --- a/test/unit/fixture/autocomplete_linguistic_focus.js +++ b/test/unit/fixture/autocomplete_linguistic_focus.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/autocomplete_linguistic_focus_null_island.js b/test/unit/fixture/autocomplete_linguistic_focus_null_island.js index 8dd3f1e6..80e44f81 100644 --- a/test/unit/fixture/autocomplete_linguistic_focus_null_island.js +++ b/test/unit/fixture/autocomplete_linguistic_focus_null_island.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/autocomplete_linguistic_multiple_tokens.js b/test/unit/fixture/autocomplete_linguistic_multiple_tokens.js index 07a06d88..b07219ac 100644 --- a/test/unit/fixture/autocomplete_linguistic_multiple_tokens.js +++ b/test/unit/fixture/autocomplete_linguistic_multiple_tokens.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/autocomplete_linguistic_only.js b/test/unit/fixture/autocomplete_linguistic_only.js index 88a7d013..036bd180 100644 --- a/test/unit/fixture/autocomplete_linguistic_only.js +++ b/test/unit/fixture/autocomplete_linguistic_only.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/autocomplete_linguistic_with_admin.js b/test/unit/fixture/autocomplete_linguistic_with_admin.js index 2fcd25ca..12940e19 100644 --- a/test/unit/fixture/autocomplete_linguistic_with_admin.js +++ b/test/unit/fixture/autocomplete_linguistic_with_admin.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/autocomplete_single_character_street.js b/test/unit/fixture/autocomplete_single_character_street.js index 356ef884..fe4e1b5c 100644 --- a/test/unit/fixture/autocomplete_single_character_street.js +++ b/test/unit/fixture/autocomplete_single_character_street.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/autocomplete_with_layer_filtering.js b/test/unit/fixture/autocomplete_with_layer_filtering.js index 6f9d5e0f..ac5971c4 100644 --- a/test/unit/fixture/autocomplete_with_layer_filtering.js +++ b/test/unit/fixture/autocomplete_with_layer_filtering.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/autocomplete_with_source_filtering.js b/test/unit/fixture/autocomplete_with_source_filtering.js index cebd7eea..ada4c953 100644 --- a/test/unit/fixture/autocomplete_with_source_filtering.js +++ b/test/unit/fixture/autocomplete_with_source_filtering.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/search_boundary_country_original.js b/test/unit/fixture/search_boundary_country_original.js index 94f867b2..0ea31ab3 100644 --- a/test/unit/fixture/search_boundary_country_original.js +++ b/test/unit/fixture/search_boundary_country_original.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/search_linguistic_bbox_original.js b/test/unit/fixture/search_linguistic_bbox_original.js index b8dbf3a1..56fd90bf 100644 --- a/test/unit/fixture/search_linguistic_bbox_original.js +++ b/test/unit/fixture/search_linguistic_bbox_original.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/search_linguistic_focus_bbox_original.js b/test/unit/fixture/search_linguistic_focus_bbox_original.js index ebc5f701..43bea77d 100644 --- a/test/unit/fixture/search_linguistic_focus_bbox_original.js +++ b/test/unit/fixture/search_linguistic_focus_bbox_original.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/search_linguistic_focus_null_island_original.js b/test/unit/fixture/search_linguistic_focus_null_island_original.js index 8f6fe381..06b598cc 100644 --- a/test/unit/fixture/search_linguistic_focus_null_island_original.js +++ b/test/unit/fixture/search_linguistic_focus_null_island_original.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/search_linguistic_focus_original.js b/test/unit/fixture/search_linguistic_focus_original.js index 38273273..9ece3b86 100644 --- a/test/unit/fixture/search_linguistic_focus_original.js +++ b/test/unit/fixture/search_linguistic_focus_original.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/search_linguistic_only_original.js b/test/unit/fixture/search_linguistic_only_original.js index 490eb0c9..1029c7f9 100644 --- a/test/unit/fixture/search_linguistic_only_original.js +++ b/test/unit/fixture/search_linguistic_only_original.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/fixture/search_partial_address_original.js b/test/unit/fixture/search_partial_address_original.js index b0c82a3f..b0cced91 100644 --- a/test/unit/fixture/search_partial_address_original.js +++ b/test/unit/fixture/search_partial_address_original.js @@ -1,4 +1,3 @@ - var vs = require('../../../query/search_defaults'); module.exports = { diff --git a/test/unit/fixture/search_regions_address_original.js b/test/unit/fixture/search_regions_address_original.js index 400f561b..1d211b8d 100644 --- a/test/unit/fixture/search_regions_address_original.js +++ b/test/unit/fixture/search_regions_address_original.js @@ -1,4 +1,3 @@ - var vs = require('../../../query/search_defaults'); module.exports = { diff --git a/test/unit/fixture/search_with_source_filtering_original.js b/test/unit/fixture/search_with_source_filtering_original.js index 24da9468..650fad61 100644 --- a/test/unit/fixture/search_with_source_filtering_original.js +++ b/test/unit/fixture/search_with_source_filtering_original.js @@ -1,4 +1,3 @@ - module.exports = { 'query': { 'bool': { diff --git a/test/unit/middleware/changeLanguage.js b/test/unit/middleware/changeLanguage.js index cc0688d9..ecdb40d0 100644 --- a/test/unit/middleware/changeLanguage.js +++ b/test/unit/middleware/changeLanguage.js @@ -1,5 +1,3 @@ -'use strict'; - const setup = require('../../../middleware/changeLanguage'); const proxyquire = require('proxyquire').noCallThru(); const _ = require('lodash'); diff --git a/test/unit/middleware/interpolate.js b/test/unit/middleware/interpolate.js index 6dbf1ae6..3602592c 100644 --- a/test/unit/middleware/interpolate.js +++ b/test/unit/middleware/interpolate.js @@ -1,5 +1,3 @@ -'use strict'; - const setup = require('../../../middleware/interpolate'); const proxyquire = require('proxyquire').noCallThru(); const _ = require('lodash'); diff --git a/test/unit/middleware/localNamingConventions.js b/test/unit/middleware/localNamingConventions.js index 96fdc1d8..e039437e 100644 --- a/test/unit/middleware/localNamingConventions.js +++ b/test/unit/middleware/localNamingConventions.js @@ -1,4 +1,3 @@ - const proxyquire = require('proxyquire'); var customConfig = { diff --git a/test/unit/middleware/requestLanguage.js b/test/unit/middleware/requestLanguage.js index 6252e589..e57a8974 100644 --- a/test/unit/middleware/requestLanguage.js +++ b/test/unit/middleware/requestLanguage.js @@ -1,4 +1,3 @@ - var middleware = require('../../../middleware/requestLanguage'); module.exports.tests = {}; diff --git a/test/unit/query/MockQuery.js b/test/unit/query/MockQuery.js index e7202cc9..f20dc569 100644 --- a/test/unit/query/MockQuery.js +++ b/test/unit/query/MockQuery.js @@ -1,5 +1,3 @@ -'use strict'; - module.exports = class MockQuery { constructor() { this._score_functions = []; diff --git a/test/unit/query/autocomplete_defaults.js b/test/unit/query/autocomplete_defaults.js index 7ccb17a0..69d18c1d 100644 --- a/test/unit/query/autocomplete_defaults.js +++ b/test/unit/query/autocomplete_defaults.js @@ -1,4 +1,3 @@ - var defaults = require('../../../query/autocomplete_defaults'); module.exports.tests = {}; diff --git a/test/unit/query/reverse_defaults.js b/test/unit/query/reverse_defaults.js index 48a9805f..2ea89cbf 100644 --- a/test/unit/query/reverse_defaults.js +++ b/test/unit/query/reverse_defaults.js @@ -1,4 +1,3 @@ - var defaults = require('../../../query/reverse_defaults'); module.exports.tests = {}; diff --git a/test/unit/query/search_defaults.js b/test/unit/query/search_defaults.js index 54b116b7..81dabed3 100644 --- a/test/unit/query/search_defaults.js +++ b/test/unit/query/search_defaults.js @@ -1,4 +1,3 @@ - var defaults = require('../../../query/search_defaults'); module.exports.tests = {}; diff --git a/test/unit/sanitizer/_geo_reverse.js b/test/unit/sanitizer/_geo_reverse.js index c2fa6bd9..69fab8fb 100644 --- a/test/unit/sanitizer/_geo_reverse.js +++ b/test/unit/sanitizer/_geo_reverse.js @@ -1,5 +1,3 @@ -'use strict'; - const sanitizer = require('../../../sanitizer/_geo_reverse')(); const defaults = require('../../../query/reverse_defaults'); diff --git a/test/unit/sanitizer/wrap.js b/test/unit/sanitizer/wrap.js index 3339b51c..143ee65a 100644 --- a/test/unit/sanitizer/wrap.js +++ b/test/unit/sanitizer/wrap.js @@ -1,4 +1,3 @@ - var wrap = require('../../../sanitizer/wrap'); module.exports.tests = {}; diff --git a/test/unit/schema.js b/test/unit/schema.js index 1278ee59..d26a7bf0 100644 --- a/test/unit/schema.js +++ b/test/unit/schema.js @@ -1,5 +1,3 @@ -'use strict'; - const Joi = require('joi'); const schema = require('../../schema'); const _ = require('lodash');