       expect(getDecorations(editor)).toHaveLength 0
 
     it "won't highlight when highlightSelection is disabled", ->
-      setConfig('highlightSelection', false)
+      atom.config.set('quick-highlight.highlightSelection', false)
       dispatchCommand('editor:select-word')
       advanceClock(150)
       expect(editor.getSelectedText()).toBe "orange"


    describe "highlightSelectionExcludeScopes", ->
      beforeEach ->
        setConfig('highlightSelectionExcludeScopes', [
            'foo.bar',
            'hoge',
          ])

# Main
# -------------------------
describe "quick-highlight", ->
  [editor, editorContent, editorElement, main] = []

  dispatchCommand = (command, {element}={}) ->
    element ?= editorElement
    atom.commands.dispatch(element, command)

  beforeEach ->
    jasmine.attachToDOM(atom.views.getView(atom.workspace))

    editorContent = """
      orange
