mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Extend AtomPackage directly in packages index.coffee
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user