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:
Tom MacWright
2013-03-06 21:20:09 -05:00
parent 27c0edb2c1
commit c736f1d312
2 changed files with 4 additions and 4 deletions

View File

@@ -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 () {

View File

@@ -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 () {