         it "highlights the found text in the new edit session (and removes the highlights from the other)", ->
           findResultsView = editor.find('.search-results')
 
-          expect(findResultsView.children().length).toEqual 6
+          expect(findResultsView.children()).toHaveLength 6
           newEditor = editor.splitRight(project.open('sample.coffee'))
-          expect(findResultsView.children().length).toEqual 0
+          expect(findResultsView.children()).toHaveLength 0
 
     describe "when the buffer contents change", ->
       it "re-runs the search", ->

          findResultsView = editor.find('.search-results')

          editor.trigger 'core:close'
          expect(findResultsView.children().length).toEqual 0

      describe "when the active pane item is not an edit session", ->
        [anotherOpener] = []


      it "only highlights matches", ->
        expect(findResultsView.parent()[0]).toBe editor.underlayer[0]
        expect(findResultsView.children()).toHaveLength 6

        findView.findEditor.setText 'notinthefilebro'
        findView.focus()
        $(document.activeElement).trigger 'core:confirm'

        expect(findResultsView.children()).toHaveLength 0

  describe "replacing", ->
    beforeEach ->
