When testing keybindings, use window.requireExtension instead of rootView.activateExtension

This commit is contained in:
Corey Johnson
2012-07-03 13:44:06 -07:00
parent ab548bc946
commit e36b5521bd
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ describe "CommandPanel", ->
rootView.open(require.resolve 'fixtures/sample.js')
rootView.enableKeymap()
editor = rootView.getActiveEditor()
commandPanel = rootView.activateExtension(CommandPanel)
commandPanel = requireExtension('command-panel')
afterEach ->
rootView.remove()

View File

@@ -9,7 +9,7 @@ describe "Snippets extension", ->
[buffer, editor] = []
beforeEach ->
rootView = new RootView(require.resolve('fixtures/sample.js'))
rootView.activateExtension(Snippets)
requireExtension("snippets")
editor = rootView.getActiveEditor()
buffer = editor.buffer
rootView.simulateDomAttachment()