|
|
@ -15,8 +15,8 @@ module.exports.tests.default_country = function(test, common) { |
|
|
|
var doc = { |
|
|
|
var doc = { |
|
|
|
'name': 'venue name', |
|
|
|
'name': 'venue name', |
|
|
|
'layer': 'venue', |
|
|
|
'layer': 'venue', |
|
|
|
'housenumber': '1', |
|
|
|
'housenumber': 'house number', |
|
|
|
'street': 'Main St', |
|
|
|
'street': 'street name', |
|
|
|
'neighbourhood': 'neighbourhood name', |
|
|
|
'neighbourhood': 'neighbourhood name', |
|
|
|
'locality': 'locality name', |
|
|
|
'locality': 'locality name', |
|
|
|
'localadmin': 'localadmin name', |
|
|
|
'localadmin': 'localadmin name', |
|
|
@ -35,8 +35,8 @@ module.exports.tests.default_country = function(test, common) { |
|
|
|
var doc = { |
|
|
|
var doc = { |
|
|
|
'name': 'venue name', |
|
|
|
'name': 'venue name', |
|
|
|
'layer': 'venue', |
|
|
|
'layer': 'venue', |
|
|
|
'housenumber': '1', |
|
|
|
'housenumber': 'house number', |
|
|
|
'street': 'Main St', |
|
|
|
'street': 'street name', |
|
|
|
'neighbourhood': 'neighbourhood name', |
|
|
|
'neighbourhood': 'neighbourhood name', |
|
|
|
'localadmin': 'localadmin name', |
|
|
|
'localadmin': 'localadmin name', |
|
|
|
'county': 'county name', |
|
|
|
'county': 'county name', |
|
|
@ -52,10 +52,10 @@ module.exports.tests.default_country = function(test, common) { |
|
|
|
|
|
|
|
|
|
|
|
test('street', function(t) { |
|
|
|
test('street', function(t) { |
|
|
|
var doc = { |
|
|
|
var doc = { |
|
|
|
'name': 'address', |
|
|
|
'name': 'house number street name', |
|
|
|
'layer': 'address', |
|
|
|
'layer': 'address', |
|
|
|
'housenumber': '1', |
|
|
|
'housenumber': 'house number', |
|
|
|
'street': 'Main St', |
|
|
|
'street': 'street name', |
|
|
|
'neighbourhood': 'neighbourhood name', |
|
|
|
'neighbourhood': 'neighbourhood name', |
|
|
|
'locality': 'locality name', |
|
|
|
'locality': 'locality name', |
|
|
|
'localadmin': 'localadmin name', |
|
|
|
'localadmin': 'localadmin name', |
|
|
@ -66,7 +66,7 @@ module.exports.tests.default_country = function(test, common) { |
|
|
|
'country_a': 'country code', |
|
|
|
'country_a': 'country code', |
|
|
|
'country': 'country name' |
|
|
|
'country': 'country name' |
|
|
|
}; |
|
|
|
}; |
|
|
|
t.equal(generator(doc),'address, locality name, country name'); |
|
|
|
t.equal(generator(doc),'house number street name, locality name, country name'); |
|
|
|
t.end(); |
|
|
|
t.end(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|