Browse Source

Whitespace

pull/1204/head
Julian Simioni 6 years ago
parent
commit
c9f89fee3d
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 20
      test/unit/helper/type_mapping.js

20
test/unit/helper/type_mapping.js

@ -4,16 +4,16 @@ var type_mapping = require('../../../helper/type_mapping');
module.exports.tests = {};
module.exports.tests.interfaces = function(test, common) {
test('complete sources', function(t) {
t.deepEquals(type_mapping.sources, [ 'openstreetmap', 'openaddresses', 'geonames', 'whosonfirst' ]);
t.end();
});
test('complete layers', function(t) {
t.deepEquals(type_mapping.layers, [ 'address', 'venue', 'street', 'country', 'macroregion',
'region', 'county', 'localadmin', 'locality', 'borough', 'neighbourhood', 'continent',
'empire', 'dependency', 'macrocounty', 'macrohood', 'microhood', 'disputed',
t.deepEquals(type_mapping.layers, [ 'address', 'venue', 'street', 'country', 'macroregion',
'region', 'county', 'localadmin', 'locality', 'borough', 'neighbourhood', 'continent',
'empire', 'dependency', 'macrocounty', 'macrohood', 'microhood', 'disputed',
'postalcode', 'ocean', 'marinearea' ]);
t.end();
});
@ -46,8 +46,8 @@ module.exports.tests.interfaces = function(test, common) {
test('complete layer mapping', function(t) {
t.deepEquals(type_mapping.layer_mapping, {
coarse: [ 'continent', 'empire', 'country', 'dependency', 'macroregion', 'region',
'locality', 'localadmin', 'macrocounty', 'county', 'macrohood', 'borough',
coarse: [ 'continent', 'empire', 'country', 'dependency', 'macroregion', 'region',
'locality', 'localadmin', 'macrocounty', 'county', 'macrohood', 'borough',
'neighbourhood', 'microhood', 'disputed', 'postalcode', 'continent', 'ocean', 'marinearea'
],
address: [ 'address' ],
@ -94,11 +94,11 @@ module.exports.tests.interfaces = function(test, common) {
t.deepEquals(type_mapping.layers_by_source, {
openstreetmap: [ 'address', 'venue', 'street' ],
openaddresses: [ 'address' ],
geonames: [ 'country', 'macroregion', 'region', 'county', 'localadmin',
geonames: [ 'country', 'macroregion', 'region', 'county', 'localadmin',
'locality', 'borough', 'neighbourhood', 'venue' ],
whosonfirst: [ 'continent', 'empire', 'country', 'dependency', 'macroregion',
'region', 'locality', 'localadmin', 'macrocounty', 'county', 'macrohood',
'borough', 'neighbourhood', 'microhood', 'disputed', 'venue', 'postalcode',
whosonfirst: [ 'continent', 'empire', 'country', 'dependency', 'macroregion',
'region', 'locality', 'localadmin', 'macrocounty', 'county', 'macrohood',
'borough', 'neighbourhood', 'microhood', 'disputed', 'venue', 'postalcode',
'continent', 'ocean', 'marinearea' ]
});
t.end();

Loading…
Cancel
Save