Skip to content

Commit

Permalink
update layers test for new geolocate svg layer
Browse files Browse the repository at this point in the history
ref #5587
  • Loading branch information
maxgrossman committed Dec 19, 2018
1 parent b9ddfca commit b010f42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/spec/svg/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('iD.svgLayers', function () {
it('creates default data layers', function () {
container.call(iD.svgLayers(projection, context));
var nodes = container.selectAll('svg .data-layer').nodes();
expect(nodes.length).to.eql(9);
expect(nodes.length).to.eql(10);
expect(d3.select(nodes[0]).classed('osm')).to.be.true;
expect(d3.select(nodes[1]).classed('notes')).to.be.true;
expect(d3.select(nodes[2]).classed('data')).to.be.true;
Expand All @@ -36,6 +36,7 @@ describe('iD.svgLayers', function () {
expect(d3.select(nodes[6]).classed('openstreetcam-images')).to.be.true;
expect(d3.select(nodes[7]).classed('debug')).to.be.true;
expect(d3.select(nodes[8]).classed('touch')).to.be.true;
expect(d3.select(nodes[9]).classed('geolocate')).to.be.true;
});

});

0 comments on commit b010f42

Please sign in to comment.