     selectList.cancelled = jasmine.createSpy('cancelled hook')
 
     selectList.setItems(items)
-    {list, editorView} = selectList
+    {list, filterEditorView} = selectList
 
   describe "when an array is assigned", ->
     it "populates the list with up to maxItems items, based on the liForElement function", ->

    it "displays no elements until the array has been set on the list", ->
      selectList.items = null
      selectList.list.empty()
      editorView.getEditor().insertText('la')
      window.advanceClock(selectList.inputThrottle)

      expect(list.find('li').length).toBe 0

      itemHeight = list.find('li').outerHeight()
      list.height(itemHeight * 2)

      filterEditorView.trigger 'core:move-down'
      filterEditorView.trigger 'core:move-down'
      expect(list.scrollBottom()).toBe itemHeight * 3

      filterEditorView.trigger 'core:move-down'
      expect(list.scrollBottom()).toBe itemHeight * 4

      filterEditorView.trigger 'core:move-up'
      filterEditorView.trigger 'core:move-up'
      expect(list.scrollTop()).toBe itemHeight

  describe "the core:confirm event", ->
    describe "when there is an item selected (because the list in not empty)", ->
      it "triggers the selected hook with the selected array element", ->
        filterEditorView.trigger 'core:move-down'
        filterEditorView.trigger 'core:move-down'
        filterEditorView.trigger 'core:confirm'
        expect(selectList.confirmed).toHaveBeenCalledWith(items[2])

    describe "when there is no item selected (because the list is empty)", ->
