     jasmine.attachToDOM(workspaceElement)
 
     atom.config.set('find-and-replace.openProjectFindResultsInRightPane', false)
-    activationPromise = atom.packages.activatePackage("find-and-replace").then ({mainModule}) ->
+    activationPromise = atom.packages.activatePackage("find-and-replace").then (options) ->
+      mainModule = options.mainModule
       mainModule.createViews()
       {projectFindView} = mainModule
       spy = spyOn(projectFindView, 'confirm').andCallFake ->

          for decoration in decorations
            resultDecorations.push decoration if decoration.getProperties().class is className
        resultDecorations

      it 'highlights the search results in the selected file', ->
        # Process here is to

waitsForPromise = (fn) -> window.waitsForPromise timeout: 30000, fn

describe 'ProjectFindView', ->
  [activationPromise, editor, editorView, projectFindView, searchPromise, resultsPane, workspaceElement, mainModule] = []

  getAtomPanel = ->
    workspaceElement.querySelector('.project-find').parentNode
