 {TextEditor} = require 'atom'
 BufferSearch = require '../lib/buffer-search'
+FindOptions = require '../lib/find-options'
 
 describe "BufferSearch", ->
   [search, editor, markersListener, currentResultListener] = []

    search.setEditor(editor)
    markersListener.reset()

    search.setSearchParams(
      pattern: "a+"
      caseSensitive: false
      useRegex: true
      wholeWord: false

      -----------
    """

    findOptions = new FindOptions
    search = new BufferSearch(findOptions)

    markersListener = jasmine.createSpy('markersListener')
    search.onDidUpdate(markersListener)
