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

        expect(iD.svgRelationMemberTags(graph)(graph.entity('w')))
            .toEqual({type: 'multipolygon'});
    });

    it('includes tags from parent boundary relations', function() {
        var graph = new iD.coreGraph([
            new iD.osmWay({id: 'w'}),
            new iD.osmRelation({id: 'r', members: [{id: 'w'}], tags: {type: 'boundary'}})
        ]);

        expect(iD.svgRelationMemberTags(graph)(graph.entity('w')))
            .toEqual({type: 'boundary'});
    });
});
