Browse Source

renamed mt/st/ft sanitizer to something more generic

pull/767/head
Stephen Hess 8 years ago
parent
commit
9e569bae17
  1. 0
      sanitizer/_city_name_standardizer.js
  2. 2
      sanitizer/search.js
  3. 2
      sanitizer/structured_geocoding.js
  4. 2
      test/unit/run.js
  5. 4
      test/unit/sanitizer/_city_name_standardizer.js
  6. 6
      test/unit/sanitizer/search.js
  7. 6
      test/unit/sanitizer/structured_geocoding.js

0
sanitizer/_mount_saint_fort_standardizer.js → sanitizer/_city_name_standardizer.js

2
sanitizer/search.js

@ -6,7 +6,7 @@ var sanitizeAll = require('../sanitizer/sanitizeAll'),
quattroshapes_deprecation: require('../sanitizer/_deprecate_quattroshapes'),
text: require('../sanitizer/_text'),
iso2_to_iso3: require('../sanitizer/_iso2_to_iso3'),
mount_saint_fort_standardizer: require('../sanitizer/_mount_saint_fort_standardizer'),
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),

2
sanitizer/structured_geocoding.js

@ -6,7 +6,7 @@ var sanitizeAll = require('../sanitizer/sanitizeAll'),
quattroshapes_deprecation: require('../sanitizer/_deprecate_quattroshapes'),
synthesize_analysis: require('../sanitizer/_synthesize_analysis'),
iso2_to_iso3: require('../sanitizer/_iso2_to_iso3'),
mount_saint_fort_standardizer: require('../sanitizer/_mount_saint_fort_standardizer'),
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),

2
test/unit/run.js

@ -48,7 +48,7 @@ var tests = [
require('./sanitizer/_ids'),
require('./sanitizer/_iso2_to_iso3'),
require('./sanitizer/_layers'),
require('./sanitizer/_mount_saint_fort_standardizer'),
require('./sanitizer/_city_name_standardizer'),
require('./sanitizer/_single_scalar_parameters'),
require('./sanitizer/_size'),
require('./sanitizer/_sources'),

4
test/unit/sanitizer/_mount_saint_fort_standardizer.js → test/unit/sanitizer/_city_name_standardizer.js

@ -1,5 +1,5 @@
const _ = require('lodash');
const sanitizer = require('../../../sanitizer/_mount_saint_fort_standardizer');
const sanitizer = require('../../../sanitizer/_city_name_standardizer');
module.exports.tests = {};
@ -276,7 +276,7 @@ module.exports.tests.text_parser = function(test, common) {
module.exports.all = function (tape, common) {
function test(name, testFunction) {
return tape('sanitizer _mount_saint_fort_standardizer: ' + name, testFunction);
return tape('sanitizer _city_name_standardizer: ' + name, testFunction);
}
for( const testCase in module.exports.tests ){

6
test/unit/sanitizer/search.js

@ -25,8 +25,8 @@ module.exports.tests.sanitize = function(test, common) {
called_sanitizers.push('_iso2_to_iso3');
return { errors: [], warnings: [] };
},
'../sanitizer/_mount_saint_fort_standardizer': function() {
called_sanitizers.push('_mount_saint_fort_standardizer');
'../sanitizer/_city_name_standardizer': function() {
called_sanitizers.push('_city_name_standardizer');
return { errors: [], warnings: [] };
},
'../sanitizer/_size': function() {
@ -90,7 +90,7 @@ module.exports.tests.sanitize = function(test, common) {
'_deprecate_quattroshapes',
'_text',
'_iso2_to_iso3',
'_mount_saint_fort_standardizer',
'_city_name_standardizer',
'_size',
'_targets/layers',
'_targets/sources',

6
test/unit/sanitizer/structured_geocoding.js

@ -25,8 +25,8 @@ module.exports.tests.sanitize = function(test, common) {
called_sanitizers.push('_iso2_to_iso3');
return { errors: [], warnings: [] };
},
'../sanitizer/_mount_saint_fort_standardizer': function() {
called_sanitizers.push('_mount_saint_fort_standardizer');
'../sanitizer/_city_name_standardizer': function() {
called_sanitizers.push('_city_name_standardizer');
return { errors: [], warnings: [] };
},
'../sanitizer/_size': function() {
@ -90,7 +90,7 @@ module.exports.tests.sanitize = function(test, common) {
'_deprecate_quattroshapes',
'_synthesize_analysis',
'_iso2_to_iso3',
'_mount_saint_fort_standardizer',
'_city_name_standardizer',
'_size',
'_targets/layers',
'_targets/sources',

Loading…
Cancel
Save