mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 22:03:37 +02:00
Don't add addr:housenumber=yes when applying Address preset (#1874)
This commit is contained in:
@@ -69,6 +69,11 @@ describe('iD.presets.Preset', function() {
|
||||
expect(preset.applyTags({}, 'area')).to.eql({building: 'yes'});
|
||||
});
|
||||
|
||||
it("prefers to add tags of addTags property", function() {
|
||||
var preset = iD.presets.Preset('test', {tags: {building: '*'}, addTags: {building: 'ok'}});
|
||||
expect(preset.applyTags({}, 'area')).to.eql({building: 'ok'});
|
||||
});
|
||||
|
||||
it("adds default tags of fields with matching geometry", function() {
|
||||
var field = iD.presets.Field('field', {key: 'building', geometry: 'area', default: 'yes'}),
|
||||
preset = iD.presets.Preset('test', {fields: ['field']}, {field: field});
|
||||
|
||||
Reference in New Issue
Block a user