From 0c54f502af660fa9367a2c87b985153357b0716f Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Thu, 17 Nov 2016 16:02:01 -0500 Subject: [PATCH] added iso2->iso3 conversion to /search endpoint --- sanitizer/search.js | 1 + test/unit/sanitizer/search.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/sanitizer/search.js b/sanitizer/search.js index 53a6b57c..450f6b62 100644 --- a/sanitizer/search.js +++ b/sanitizer/search.js @@ -5,6 +5,7 @@ var sanitizeAll = require('../sanitizer/sanitizeAll'), quattroshapes_deprecation: require('../sanitizer/_deprecate_quattroshapes'), singleScalarParameters: require('../sanitizer/_single_scalar_parameters'), text: require('../sanitizer/_text'), + iso2_to_iso3: require('../sanitizer/_iso2_to_iso3'), size: require('../sanitizer/_size')(/* use defaults*/), layers: require('../sanitizer/_targets')('layers', type_mapping.layer_mapping), sources: require('../sanitizer/_targets')('sources', type_mapping.source_mapping), diff --git a/test/unit/sanitizer/search.js b/test/unit/sanitizer/search.js index b656d943..fa60e58a 100644 --- a/test/unit/sanitizer/search.js +++ b/test/unit/sanitizer/search.js @@ -21,6 +21,10 @@ module.exports.tests.sanitize = function(test, common) { called_sanitizers.push('_text'); return { errors: [], warnings: [] }; }, + '../sanitizer/_iso2_to_iso3': function() { + called_sanitizers.push('_iso2_to_iso3'); + return { errors: [], warnings: [] }; + }, '../sanitizer/_size': function() { if (arguments.length === 0) { return function() { @@ -81,6 +85,7 @@ module.exports.tests.sanitize = function(test, common) { '_deprecate_quattroshapes', '_single_scalar_parameters', '_text', + '_iso2_to_iso3', '_size', '_targets/layers', '_targets/sources',