         editor.setSelectedBufferRange(range)
 
       it "adds the background class to the cursor line", ->
-        expect(editorElement.shadowRoot
-          .querySelectorAll('.cursor-line.highlight-line')
+        expect(
+          editorElement.querySelectorAll('.cursor-line.highlight-line')
         ).toHaveLength(1)
 
       describe "when hide highlight on select is enabled", ->

          atom.config.set('highlight-line.hideHighlightOnSelect', true)

        it "will have a highlight when there is no text selected", ->
          expect(editorElement.shadowRoot
            .querySelectorAll('.cursor-line.highlight-line')
          ).toHaveLength(1)

        it "won`t have a highlight when there is text selected", ->
          range = new Range(new Point(8, 2), new Point(8, 5))
          editor.setSelectedBufferRange(range)
          expect(editorElement.shadowRoot
            .querySelectorAll('.cursor-line.highlight-line')
          ).toHaveLength(0)


            range = new Range(new Point(8, 2), new Point(8, 5))
            editor.setSelectedBufferRange(range)
            expect(
              editorElement.querySelectorAll(
                '.line.highlight-line-multi-line-solid-bottom'
              )
            ).toHaveLength(1)
