 {WorkspaceView} = require 'atom'
 
 describe 'IndentationIndicator', ->
+  [indicator] = []
+
   beforeEach ->
     atom.workspaceView = new WorkspaceView
     atom.workspace = atom.workspaceView.model

        atom.workspace.open('sample.js')

      runs ->
        view = atom.workspaceView.find('.indentation-indicator')
        expect(view.text()).toBe 'Spaces:6'

    it 'uses the defaults if no editor settings are available', ->
      atom.config.set('editor', {})

        atom.workspace.open('sample.js')

      runs ->
        expect(indicator.text()).toBe 'Spaces:2'

    describe 'when spaceAfterColon is true', ->
      it 'has a space after the colon in the indicator', ->
