           expect(editor.getBuffer().getLastLine()).toEqual ""
 
         it "does not insert the word when tab completion not enabled", ->
-          editorView = editorView
           atom.config.set('autocomplete-plus.confirmCompletion', 'enter')
           expect(editorView.querySelector(".autocomplete-plus")).not.toExist()
 

        expect(autocomplete).not.toExist()

      it "does not close the autocomplete when up arrow pressed when many items", ->
        editorView = editorView

        # Trigger an autocompletion
        triggerAutocompletion editor
        advanceClock completionDelay


    describe "select-previous event", ->
      it "selects the previous item in the list", ->

        # Trigger an autocompletion
        triggerAutocompletion editor
