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



        it "hides the suggestions", ->
          expect(editorView.querySelector(".autocomplete-plus")).not.toExist()

          # Trigger an autocompletion
