Browse Source

add test for borough in geonames

pull/612/head
avulfson17 8 years ago committed by Alec Vulfson
parent
commit
61ac4a99c1
  1. 11
      test/unit/sanitiser/_sources_and_layers.js

11
test/unit/sanitiser/_sources_and_layers.js

@ -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'] };

Loading…
Cancel
Save