mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-21 07:46:58 +02:00
Adding mechanism for specifying an upgrade path for deprecated presets (close #6045)
This commit is contained in:
@@ -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' }
|
||||
}]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user