Modernize command-panel package with package.cson

This commit is contained in:
Corey Johnson & Kevin Sawicki
2013-02-08 11:52:52 -08:00
parent 9043f8290f
commit 2d80d27ca7
27 changed files with 110 additions and 138 deletions

View File

@@ -1,7 +1,7 @@
$ = require 'jquery'
module.exports =
eventLog: null
eventLog: {}
commandLoggerView: null
originalTrigger: null
@@ -29,7 +29,7 @@ module.exports =
deactivate: ->
$.fn.trigger = @originalTrigger if @originalTrigger?
@commandLoggerView = null
@eventLog = null
@eventLog = {}
serialize: ->
{@eventLog}

View File

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