From 8f9cf3c7905f88814db8e2bf213fe2537f02c6fa Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 11 Sep 2014 14:14:03 -0600 Subject: [PATCH] Set the atom.commands root node to document.body in beforeEach --- spec/spec-helper.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/spec-helper.coffee b/spec/spec-helper.coffee index d5107fc53..7f359536b 100644 --- a/spec/spec-helper.coffee +++ b/spec/spec-helper.coffee @@ -63,6 +63,7 @@ beforeEach -> atom.project = new Project(path: projectPath) atom.workspace = new Workspace() atom.keymaps.keyBindings = _.clone(keyBindingsToRestore) + atom.commands.setRootNode(document.body) window.resetTimeouts() atom.packages.packageStates = {}