Adding mechanism for specifying an upgrade path for deprecated presets (close #6045)

This commit is contained in:
Quincy Morgan
2019-03-13 17:51:12 -04:00
parent 2afccc326e
commit 17087f42c8
38 changed files with 198 additions and 207 deletions
+3 -3
View File
@@ -227,9 +227,9 @@ describe('iD.osmEntity', function () {
});
it('returns true if entity has deprecated tags', function () {
expect(iD.Entity({ tags: { amenity: 'swimming_pool' } }).deprecatedTags()).to.eql([{
old: { amenity: 'swimming_pool' },
replace: { leisure: 'swimming_pool' }
expect(iD.Entity({ tags: { amenity: 'toilet' } }).deprecatedTags()).to.eql([{
old: { amenity: 'toilet' },
replace: { amenity: 'toilets' }
}]);
});
});