Moved atom.loadPackage to a spec-only helper function

This commit is contained in:
Corey Johnson
2013-02-13 16:29:51 -08:00
parent 297a33cc8d
commit 958bc2bfab
22 changed files with 54 additions and 45 deletions

View File

@@ -6,7 +6,7 @@ describe "CommandLogger", ->
beforeEach ->
new RootView(require.resolve('fixtures/sample.js'))
commandLogger = atom.loadPackage('command-logger').packageMain
commandLogger = window.loadPackage('command-logger').packageMain
commandLogger.eventLog = {}
editor = rootView.getActiveEditor()