Fix context.js and vertices.js tests

This commit is contained in:
Bryan Housel
2017-12-15 18:17:12 -05:00
parent f0e2d3fbfe
commit 6644c9db6b
2 changed files with 5 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;
});
});