 
     describe "highlightSelectionDelay", ->
       beforeEach ->
-        setConfig('highlightSelectionDelay', 300)
+        atom.config.set('quick-highlight.highlightSelectionDelay', 300)
 
       it "highlight selection after specified delay", ->
         dispatchCommand('editor:select-word')

        waitsFor -> main.statusBarManager.tile?

        runs ->
          container = workspaceElement.querySelector('#status-bar-quick-highlight')
          span = container.querySelector('span')

      it 'display latest highlighted count on statusbar', ->

      expect(getDecorations(editor)).toHaveLength(0)

    it "won't highlight selectedText length is less than highlightSelectionMinimumLength", ->
      atom.config.set("quick-highlight.highlightSelectionMinimumLength", 3)
      dispatchCommand('core:select-right')
      advanceClock(150)
      expect(editor.getSelectedText()).toBe "o"
