From ee4ec4e2522c13d3e9e335a2df9c21c46fb5a021 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 22 May 2013 17:36:41 -0700 Subject: [PATCH] Fix tests --- test/spec/core/connection.js | 2 +- test/spec/svg/vertices.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);