diff --git a/sanitizer/nearby.js b/sanitizer/nearby.js index 021efa77..a26b93a3 100644 --- a/sanitizer/nearby.js +++ b/sanitizer/nearby.js @@ -17,12 +17,6 @@ var sanitizers = { categories: require('../sanitizer/_categories')() }; -var sanitize = sanitizeAll.runAllChecks; - -// export sanitize for testing -module.exports.sanitize = sanitize; -module.exports.sanitizer_list = sanitizers; - // middleware module.exports.middleware = function( req, res, next ){ sanitizeAll.runAllChecks(req, sanitizers); diff --git a/sanitizer/place.js b/sanitizer/place.js index 6800b06b..4ab7af16 100644 --- a/sanitizer/place.js +++ b/sanitizer/place.js @@ -6,12 +6,6 @@ var sanitizeAll = require('../sanitizer/sanitizeAll'), private: require('../sanitizer/_flag_bool')('private', false) }; -var sanitize = sanitizeAll.runAllChecks; - -// export sanitize for testing -module.exports.sanitize = sanitize; -module.exports.sanitizer_list = sanitizers; - // middleware module.exports.middleware = function(req, res, next){ sanitizeAll.runAllChecks(req, sanitizers); diff --git a/sanitizer/reverse.js b/sanitizer/reverse.js index 91094812..1ecb92e1 100644 --- a/sanitizer/reverse.js +++ b/sanitizer/reverse.js @@ -15,12 +15,6 @@ var sanitizeAll = require('../sanitizer/sanitizeAll'), boundary_country: require('../sanitizer/_boundary_country')() }; -var sanitize = sanitizeAll.runAllChecks; - -// export sanitize for testing -module.exports.sanitize = sanitize; -module.exports.sanitizer_list = sanitizers; - // middleware module.exports.middleware = function( req, res, next ){ sanitizeAll.runAllChecks(req, sanitizers); diff --git a/test/unit/sanitizer/sanitizeAll.js b/test/unit/sanitizer/sanitizeAll.js index f74e7efb..e8502813 100644 --- a/test/unit/sanitizer/sanitizeAll.js +++ b/test/unit/sanitizer/sanitizeAll.js @@ -152,7 +152,7 @@ module.exports.tests.all = function(test, common) { t.end(); }); - test('unexpected parameters should throw warning', function(t) { + test('unexpected parameters should add warning', function(t) { var req = { query: { unknown_value: 'query value' @@ -177,7 +177,7 @@ module.exports.tests.all = function(test, common) { t.end(); }); - test('expected parameters should not throw warning', function(t) { + test('expected parameters should not add warning', function(t) { var req = { query: { value: 'query value'