From e5a44e9ba143c35f69fe08c0a501825d01dc9f27 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 17 Jun 2013 15:49:03 -0700 Subject: [PATCH] Fix tests --- test/spec/behavior/hover.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/spec/behavior/hover.js b/test/spec/behavior/hover.js index ec6dbd030..9175b36af 100644 --- a/test/spec/behavior/hover.js +++ b/test/spec/behavior/hover.js @@ -22,8 +22,8 @@ describe("iD.behavior.Hover", function() { describe("mouseover", function () { it("adds the .hover class to all elements to which the same datum is bound", function () { - var a = {id: 'a', type: 'node'}, - b = {id: 'b', type: 'node'}; + var a = iD.Node({id: 'a'}), + b = iD.Node({id: 'b'}); container.selectAll('span') .data([a, b, a, b]) @@ -38,7 +38,7 @@ describe("iD.behavior.Hover", function() { it("adds the .hover class to all members of a relation", function() { container.selectAll('span') - .data([{id: 'a', type: 'relation', members: [{id: 'b'}]}, {id: 'b'}]) + .data([iD.Relation({id: 'a', members: [{id: 'b'}]}), iD.Node({id: 'b'})]) .enter().append('span').attr('class', function(d) { return d.id; }); container.call(iD.behavior.Hover(context));