From 42affa80f8454e2e0074933bfcce28459e863c10 Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Wed, 17 Aug 2016 15:21:53 -0400 Subject: [PATCH] updated filename --- sanitiser/search_fallback.js | 2 +- test/unit/sanitiser/search_fallback.js | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) 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 = {};