This commit is contained in:
Tobias Zwick
2019-04-30 22:15:34 +02:00
parent 62e0f76243
commit a1b89332bb

View File

@@ -159,6 +159,11 @@ describe('iD.presetPreset', function() {
var preset = iD.presetPreset('test', {tags: {a: 'b'}, removeTags: {}});
expect(preset.unsetTags({a: 'b'}, 'area')).to.eql({a: 'b'});
});
it('uses tags from addTags if removeTags is not defined', function() {
var preset = iD.presetPreset('test', {tags: {a: 'b'}, addTags: {remove: 'me'}});
expect(preset.unsetTags({a: 'b', remove: 'me'}, 'area')).to.eql({a: 'b'});
});
});
describe('#visible', function() {