         expect(autocomplete).toExist()
 
       it "does close the autocomplete when up arrow while up,down navigation not selected", ->
-        editorView = editorView
-
         atom.config.set('autocomplete-plus.navigateCompletions', 'ctrl-p,ctrl-n')
         # Trigger an autocompletion
         triggerAutocompletion editor

        expect(items[3]).toHaveClass("selected")

      it "closes the autocomplete when up arrow pressed when only one item displayed", ->
        editorView = editorView

        # Trigger an autocompletion
        triggerAutocompletion editor, false, 'q'
        advanceClock completionDelay


    describe "when a suggestion is clicked", ->
      it "should select the item and confirm the selection", ->
        # Trigger an autocompletion
        triggerAutocompletion editor
        advanceClock completionDelay
