Browse Source

moved libpostal lower in sanitizers to after sources

pull/912/head
Stephen Hess 7 years ago
parent
commit
ac7f5c445c
  1. 2
      sanitizer/search.js
  2. 6
      test/unit/sanitizer/search.js

2
sanitizer/search.js

@ -6,8 +6,6 @@ module.exports.middleware = (_api_pelias_config) => {
singleScalarParameters: require('../sanitizer/_single_scalar_parameters'),
quattroshapes_deprecation: require('../sanitizer/_deprecate_quattroshapes'),
text: require('../sanitizer/_text'),
iso2_to_iso3: require('../sanitizer/_iso2_to_iso3'),
city_name_standardizer: require('../sanitizer/_city_name_standardizer'),
size: require('../sanitizer/_size')(/* use defaults*/),
layers: require('../sanitizer/_targets')('layers', type_mapping.layer_mapping),
sources: require('../sanitizer/_targets')('sources', type_mapping.source_mapping),

6
test/unit/sanitizer/search.js

@ -104,9 +104,6 @@ module.exports.tests.sanitize = (test, common) => {
const expected_sanitizers = [
'_single_scalar_parameters',
'_deprecate_quattroshapes',
'_text',
'_iso2_to_iso3',
'_city_name_standardizer',
'_size',
'_targets/layers',
'_targets/sources',
@ -116,6 +113,9 @@ module.exports.tests.sanitize = (test, common) => {
'_geo_search',
'_boundary_country',
'_categories',
'_text',
'_iso2_to_iso3',
'_city_name_standardizer',
'_geonames_warnings'
];

Loading…
Cancel
Save