           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()
 


    describe "when a suggestion is clicked", ->
      it "should select the item and confirm the selection", ->
        editorView = editorView

        # Trigger an autocompletion
        triggerAutocompletion editor
        advanceClock completionDelay

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

      it "closes the autocomplete when up arrow pressed when only one item displayed", ->
        # Trigger an autocompletion
        triggerAutocompletion editor, false, 'q'
        advanceClock completionDelay
