mirror of https://github.com/pelias/api.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
616 B
22 lines
616 B
9 years ago
|
var autocomplete = require('../../../sanitiser/autocomplete');
|
||
|
|
||
|
module.exports.tests = {};
|
||
|
|
||
|
module.exports.tests.sanitisers = function(test, common) {
|
||
|
test('check sanitiser list', function (t) {
|
||
|
var expected = ['text', 'size', 'private', 'geo_autocomplete' ];
|
||
|
t.deepEqual(Object.keys(autocomplete.sanitiser_list), expected);
|
||
|
t.end();
|
||
|
});
|
||
|
};
|
||
|
|
||
|
module.exports.all = function (tape, common) {
|
||
|
function test(name, testFunction) {
|
||
|
return tape('SANTIZE /autocomplete ' + name, testFunction);
|
||
|
}
|
||
|
|
||
|
for( var testCase in module.exports.tests ){
|
||
|
module.exports.tests[testCase](test, common);
|
||
|
}
|
||
|
};
|