Move installation of uncaught error handler to startEditorWindow

This commit is contained in:
Nathan Sobo
2015-09-29 20:23:51 -06:00
parent a573e1f381
commit 7d014581cf
2 changed files with 30 additions and 19 deletions

View File

@@ -61,6 +61,10 @@ describe "the `atom` global", ->
beforeEach ->
spyOn atom, 'openDevTools'
spyOn atom, 'executeJavaScriptInDevTools'
atom.installUncaughtErrorHandler()
afterEach: ->
atom.uninstallUncaughtErrorHandler()
it "will open the dev tools when an error is triggered", ->
try