diff --git a/test/spec/core/connection.js b/test/spec/core/connection.js index 805649159..77fe577c3 100644 --- a/test/spec/core/connection.js +++ b/test/spec/core/connection.js @@ -122,7 +122,7 @@ describe('iD.Connection', function () { it('emits a load event', function(done) { c.loadEntity('n1'); c.on('load', function(error, result) { - expect(result.n1).to.be.an.instanceOf(iD.Node); + expect(result.data.n1).to.be.an.instanceOf(iD.Node); done(); }); diff --git a/test/spec/svg/vertices.js b/test/spec/svg/vertices.js index ae6c71d98..20182756b 100644 --- a/test/spec/svg/vertices.js +++ b/test/spec/svg/vertices.js @@ -11,8 +11,8 @@ describe("iD.svg.Vertices", function () { it("adds the .shared class to vertices that are members of two or more ways", function () { var node = iD.Node({loc: [0, 0]}), - way1 = iD.Way({nodes: [node.id]}), - way2 = iD.Way({nodes: [node.id]}), + way1 = iD.Way({nodes: [node.id], tags: {highway: 'residential'}}), + way2 = iD.Way({nodes: [node.id], tags: {highway: 'residential'}}), graph = iD.Graph([node, way1, way2]); surface.call(iD.svg.Vertices(projection, context), graph, [node], 17);