mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-12 14:16:14 +00:00
Fix tests
Way lines are no longer the only paths on the map, so we need to be more specific.
This commit is contained in:
@@ -14,8 +14,8 @@ describe("iD.svg.Areas", function () {
|
||||
|
||||
surface.call(iD.svg.Areas(projection), graph, [area], filter);
|
||||
|
||||
expect(surface.select('path')).to.be.classed('way');
|
||||
expect(surface.select('path')).to.be.classed('area');
|
||||
expect(surface.select('path.way')).to.be.classed('way');
|
||||
expect(surface.select('path.area')).to.be.classed('area');
|
||||
});
|
||||
|
||||
it("adds tag classes", function () {
|
||||
|
||||
@@ -17,8 +17,8 @@ describe("iD.svg.Lines", function () {
|
||||
|
||||
surface.call(iD.svg.Lines(projection), graph, [line], filter, dimensions);
|
||||
|
||||
expect(surface.select('path')).to.be.classed('way');
|
||||
expect(surface.select('path')).to.be.classed('line');
|
||||
expect(surface.select('path.way')).to.be.classed('way');
|
||||
expect(surface.select('path.line')).to.be.classed('line');
|
||||
});
|
||||
|
||||
it("adds tag classes", function () {
|
||||
|
||||
Reference in New Issue
Block a user