diff --git a/test/unit/sanitiser/search.js b/test/unit/sanitiser/search.js index 270fa93c..6715258e 100644 --- a/test/unit/sanitiser/search.js +++ b/test/unit/sanitiser/search.js @@ -249,7 +249,7 @@ module.exports.tests.sanitize_details = function(test, common) { var valid_values = ['true', true, 1, '1', 'yes', 'y']; valid_values.forEach(function(details) { test('valid details param ' + details, function(t) { - sanitize({ text: 'test', lat: 0, lon: 0, details: details }, function( err, clean ){ + sanitize({ text: 'test', details: details }, function( err, clean ){ t.equal(clean.details, true, 'details set to true'); t.end(); }); @@ -259,7 +259,7 @@ module.exports.tests.sanitize_details = function(test, common) { var valid_false_values = ['false', false, 0, '0', 'no', 'n']; valid_false_values.forEach(function(details) { test('test setting false explicitly ' + details, function(t) { - sanitize({ text: 'test', lat: 0, lon: 0, details: details }, function( err, clean ){ + sanitize({ text: 'test', details: details }, function( err, clean ){ t.equal(clean.details, false, 'details set to false'); t.end(); }); @@ -267,7 +267,7 @@ module.exports.tests.sanitize_details = function(test, common) { }); test('test default behavior', function(t) { - sanitize({ text: 'test', lat: 0, lon: 0 }, function( err, clean ){ + sanitize({ text: 'test' }, function( err, clean ){ t.equal(clean.details, true, 'details set to true'); t.end(); });