Fix tests

This commit is contained in:
John Firebaugh
2013-05-22 17:36:41 -07:00
parent affdc987e4
commit ee4ec4e252
2 changed files with 3 additions and 3 deletions

View File

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

View File

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