     atom.commands.dispatch workspaceElement, 'project-find:show'
 
     waitsForPromise ->
-      promise
+      activationPromise
 
   describe "result sorting", ->
     beforeEach ->

path = require 'path'
_ = require 'underscore-plus'
{$} = require 'atom-space-pen-views'
temp = require "temp"

ResultsPaneView = require '../lib/project/results-pane'
FileIcons = require '../lib/file-icons'


        expect(fileIconClasses).not.toContain('third-icon-class fourth-icon-class icon')
        expect(fileIconClasses).toContain('icon-file-text icon')

buildMouseEvent = (type, properties...) ->
  properties = _.extend({bubbles: true, cancelable: true, detail: 1}, properties...)
  event = new MouseEvent(type, properties)
  Object.defineProperty(event, 'which', get: -> properties.which) if properties.which?
  if properties.target?
