       expect(selectList.error).not.toBeVisible()
 
     it "displays an error if there are no matches, removes error when there are matches", ->
-      editorView.getEditor().insertText('nothing will match this')
+      filterEditorView.getEditor().insertText('nothing will match this')
       window.advanceClock(selectList.inputThrottle)
 
       expect(list.find('li').length).toBe 0
       expect(selectList.error).not.toBeHidden()
 
-      editorView.getEditor().setText('la')
+      filterEditorView.getEditor().setText('la')
       window.advanceClock(selectList.inputThrottle)
 
       expect(list.find('li').length).toBe 2

    selectList.cancelled = jasmine.createSpy('cancelled hook')

    selectList.setItems(items)
    {list, editorView} = selectList

  describe "when an array is assigned", ->
    it "populates the list with up to maxItems items, based on the liForElement function", ->

{$, $$} = require 'atom'

describe "SelectListView", ->
  [selectList, items, list, filterEditorView] = []

  beforeEach ->
    items = [
