Call atom.focus() in the root beforeEach

Async events are not currently firing in specs and this
appears to cause them fire.
This commit is contained in:
Kevin Sawicki 2013-07-15 13:40:51 -07:00
parent 1a76e3dc9d
commit 6bbcc58542

View File

@ -78,6 +78,7 @@ beforeEach ->
spyOn(clipboard, 'readText').andCallFake -> pasteboardContent
addCustomMatchers(this)
atom.focus() # Hack to get async events to fire
afterEach ->
keymap.bindingSets = bindingSetsToRestore