From c736f1d312c82006b39c030388fdbd4de5d428b5 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Wed, 6 Mar 2013 21:20:09 -0500 Subject: [PATCH] Fix tests Way lines are no longer the only paths on the map, so we need to be more specific. --- test/spec/svg/areas.js | 4 ++-- test/spec/svg/lines.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/spec/svg/areas.js b/test/spec/svg/areas.js index d84abf8f1..a2ede70e4 100644 --- a/test/spec/svg/areas.js +++ b/test/spec/svg/areas.js @@ -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 () { diff --git a/test/spec/svg/lines.js b/test/spec/svg/lines.js index 0dfa32f67..d38b6f998 100644 --- a/test/spec/svg/lines.js +++ b/test/spec/svg/lines.js @@ -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 () {