|
|
|
@ -52,6 +52,17 @@ module.exports.tests.no_errors = function(test, common) {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
test('valid combination', function(t) { |
|
|
|
|
var raw = {}; |
|
|
|
|
var clean = { sources: ['geonames'], layers: ['borough'] }; |
|
|
|
|
|
|
|
|
|
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'); |
|
|
|
|
t.end(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
test('valid combination', function(t) { |
|
|
|
|
var raw = {}; |
|
|
|
|
var clean = { sources: ['geonames'], layers: ['macroregion'] }; |
|
|
|
|
|
|
|
|
|