@ -51,7 +51,7 @@ var LAYERS_BY_SOURCE = {
'locality','borough', 'neighbourhood', 'venue' ],
whosonfirst: [ 'continent', 'country', 'dependency', 'macroregion', 'region',
'locality', 'localadmin', 'macrocounty', 'county', 'macrohood', 'borough',
'neighbourhood', 'microhood', 'disputed']
'neighbourhood', 'microhood', 'disputed', 'venue']
};
/*
@ -73,6 +73,17 @@ test('valid combination', function(t) {
t.end();
});
test('valid combination: wof venues', function(t) {
var raw = {};
var clean = { sources: ['whosonfirst'], layers: ['venue'] };
var messages = sanitize(raw, clean);
t.equal(messages.errors.length, 0, 'should return no errors');
t.equal(messages.warnings.length, 0, 'should return no warnings');
test('valid combination because of multiple sources', function(t) {
var clean = { sources: ['openstreetmap', 'openaddresses'], layers: ['venue'] };