Extend AtomPackage directly in packages index.coffee

This commit is contained in:
Kevin Sawicki
2013-01-22 08:56:18 -08:00
parent 36e0ad6dc8
commit ca596db310
43 changed files with 252 additions and 175 deletions

View File

@@ -1,9 +1,9 @@
RootView = require 'root-view'
CommandPanel = require 'command-panel'
CommandPanelView = require 'command-panel/src/command-panel-view'
_ = require 'underscore'
describe "CommandPanel", ->
[rootView, editor, buffer, commandPanel, project] = []
[rootView, editor, buffer, commandPanel, project, CommandPanel] = []
beforeEach ->
rootView = new RootView
@@ -12,8 +12,8 @@ describe "CommandPanel", ->
project = rootView.project
editor = rootView.getActiveEditor()
buffer = editor.activeEditSession.buffer
atom.loadPackage('command-panel')
commandPanel = CommandPanel.instance
CommandPanel = atom.loadPackage('command-panel')
commandPanel = CommandPanelView.instance
commandPanel.history = []
commandPanel.historyIndex = 0