fix tests

This commit is contained in:
Ansis Brammanis
2013-04-02 13:31:08 -04:00
parent 3e75943405
commit cf5eb8a1c9
2 changed files with 3 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ describe("iD.modes.AddPoint", function() {
happen.mouseup(window, {});
expect(context.changes().created).to.have.length(1);
context.mode().exit();
d3.select('window').on('click.draw-block', null);
});
it("selects the node", function() {

View File

@@ -8,7 +8,8 @@ mocha.setup({
'__onmouseup.zoom',
'__onkeydown.select',
'__onkeyup.select',
'__onclick.draw'
'__onclick.draw',
'__onclick.draw-block'
]
});