     search.setEditor(editor)
     markersListener.reset()
 
-    search.setSearchParams(
-      pattern: "a+"
+    search.setFindOptions(
+      findPattern: "a+"
       caseSensitive: false
       useRegex: true
       wholeWord: false

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

    search = new BufferSearch

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

{TextEditor} = require 'atom'
BufferSearch = require '../lib/buffer-search'
FindOptions = require '../lib/find-options'

describe "BufferSearch", ->
  [search, editor, markersListener, currentResultListener] = []
