Make point draw function more consistent with other draw functions

This commit is contained in:
Bryan Housel
2016-02-22 16:52:49 -05:00
parent 6c1df37298
commit f37a809001
3 changed files with 7 additions and 7 deletions
+3 -2
View File
@@ -10,9 +10,10 @@ describe("iD.svg.Points", function () {
});
it("adds tag classes", function () {
var point = iD.Node({tags: {amenity: "cafe"}, loc: [0, 0]});
var point = iD.Node({tags: {amenity: "cafe"}, loc: [0, 0]}),
graph = iD.Graph([point]);
surface.call(iD.svg.Points(projection, context), [point]);
surface.call(iD.svg.Points(projection, context), graph, [point]);
expect(surface.select('.point')).to.be.classed('tag-amenity');
expect(surface.select('.point')).to.be.classed('tag-amenity-cafe');