diff --git a/test/spec/core/context.js b/test/spec/core/context.js index 04f665400..df3fbfdbf 100644 --- a/test/spec/core/context.js +++ b/test/spec/core/context.js @@ -59,7 +59,8 @@ describe('iD.Context', function() { collision: false, imagery: false, imperial: false, - driveLeft: false + driveLeft: false, + target: false }; expect(context.debugFlags()).to.eql(flags); diff --git a/test/spec/svg/vertices.js b/test/spec/svg/vertices.js index 6ab4d4e3b..3f7789643 100644 --- a/test/spec/svg/vertices.js +++ b/test/spec/svg/vertices.js @@ -24,8 +24,10 @@ describe('iD.svgVertices', function () { var way1 = iD.osmWay({nodes: [node.id], tags: {highway: 'residential'}}); var way2 = iD.osmWay({nodes: [node.id], tags: {highway: 'residential'}}); var graph = iD.coreGraph([node, way1, way2]); + var filter = function() { return true; }; + var extent = iD.geoExtent([0, 0], [1, 1]); - surface.call(iD.svgVertices(projection, context), graph, [node]); + surface.call(iD.svgVertices(projection, context), graph, [node], filter, extent); expect(surface.select('.vertex').classed('shared')).to.be.true; }); });