diff --git a/sanitiser/search_fallback.js b/sanitiser/search_fallback.js index ebe6b53e..3a855cf9 100644 --- a/sanitiser/search_fallback.js +++ b/sanitiser/search_fallback.js @@ -1,6 +1,6 @@ var sanitizeAll = require('../sanitiser/sanitizeAll'), sanitizers = { - text: require('../sanitiser/_text_autocomplete') + text: require('../sanitiser/_text_addressit') }; var sanitize = function(req, cb) { sanitizeAll(req, sanitizers, cb); }; diff --git a/test/unit/sanitiser/search_fallback.js b/test/unit/sanitiser/search_fallback.js index 2003b19f..dd8fff2a 100644 --- a/test/unit/sanitiser/search_fallback.js +++ b/test/unit/sanitiser/search_fallback.js @@ -9,14 +9,14 @@ module.exports.tests.sanitize = function(test, common) { // rather than re-verify the functionality of all the sanitisers, this test just verifies that they // were all called correctly var search = proxyquire('../../../sanitiser/search_fallback', { - '../sanitiser/_text_autocomplete': function() { - called_sanitisers.push('_text_autocomplete'); + '../sanitiser/_text_addressit': function() { + called_sanitisers.push('_text_addressit'); return { errors: [], warnings: [] }; } }); var expected_sanitisers = [ - '_text_autocomplete' + '_text_addressit' ]; var req = {}; @@ -34,14 +34,14 @@ module.exports.tests.sanitize = function(test, common) { // rather than re-verify the functionality of all the sanitisers, this test just verifies that they // were all called correctly var search = proxyquire('../../../sanitiser/search_fallback', { - '../sanitiser/_text_autocomplete': function() { - called_sanitisers.push('_text_autocomplete'); + '../sanitiser/_text_addressit': function() { + called_sanitisers.push('_text_addressit'); return { errors: [], warnings: [] }; } }); var expected_sanitisers = [ - '_text_autocomplete' + '_text_addressit' ]; var req = {}; @@ -60,14 +60,14 @@ module.exports.tests.sanitize = function(test, common) { // rather than re-verify the functionality of all the sanitisers, this test just verifies that they // were all called correctly var search = proxyquire('../../../sanitiser/search_fallback', { - '../sanitiser/_text_autocomplete': function() { - called_sanitisers.push('_text_autocomplete'); + '../sanitiser/_text_addressit': function() { + called_sanitisers.push('_text_addressit'); return { errors: [], warnings: [] }; } }); var expected_sanitisers = [ - '_text_autocomplete' + '_text_addressit' ]; var req = {};