mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-26 01:47:49 +02:00
Make point draw function more consistent with other draw functions
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user