Files
iD/test/spec/svg/svg.js
Bryan Housel 71b2d2c6b7 Upgrade legacy symbols in tests
- iD.Context -> iD.coreContext
- iD.Graph -> iD.coreGraph
- iD.Node -> iD.osmNode
- iD.Way -> iD.osmWay
- iD.Relation -> iD.osmRelation
2019-01-30 15:43:02 -05:00

22 lines
771 B
JavaScript

describe('iD.svgRelationMemberTags', function() {
it('includes tags from parent multipolygon relations', function() {
var graph = iD.coreGraph([
iD.osmWay({id: 'w'}),
iD.osmRelation({id: 'r', members: [{id: 'w'}], tags: {type: 'multipolygon'}})
]);
expect(iD.svgRelationMemberTags(graph)(graph.entity('w')))
.to.eql({type: 'multipolygon'});
});
it('includes tags from parent boundary relations', function() {
var graph = iD.coreGraph([
iD.osmWay({id: 'w'}),
iD.osmRelation({id: 'r', members: [{id: 'w'}], tags: {type: 'boundary'}})
]);
expect(iD.svgRelationMemberTags(graph)(graph.entity('w')))
.to.eql({type: 'boundary'});
});
});