diff --git a/test/index.html b/test/index.html index 2e9602fd6..548b33dfb 100644 --- a/test/index.html +++ b/test/index.html @@ -4,6 +4,7 @@ Mocha Tests +
diff --git a/test/index_packaged.html b/test/index_packaged.html index 575d163ff..4cb953a02 100644 --- a/test/index_packaged.html +++ b/test/index_packaged.html @@ -4,6 +4,7 @@ Mocha Tests +
diff --git a/test/spec/svg/points.js b/test/spec/svg/points.js index 6e991962c..277433bfb 100644 --- a/test/spec/svg/points.js +++ b/test/spec/svg/points.js @@ -1,9 +1,11 @@ describe("iD.svg.Points", function () { var surface, projection = Object, - filter = d3.functor(true); + filter = d3.functor(true), + context; beforeEach(function () { + context = iD(); surface = d3.select(document.createElementNS('http://www.w3.org/2000/svg', 'svg')) .call(iD.svg.Surface()); }); @@ -12,7 +14,7 @@ describe("iD.svg.Points", function () { var node = iD.Node({tags: {amenity: "cafe"}, loc: [0, 0], _poi: true}), graph = iD.Graph([node]); - surface.call(iD.svg.Points(projection), graph, [node], filter); + surface.call(iD.svg.Points(projection, context), graph, [node], filter); expect(surface.select('.point')).to.be.classed('tag-amenity'); expect(surface.select('.point')).to.be.classed('tag-amenity-cafe');