 
     describe "when the editor.showIndentGuide config setting changes", ->
       it "updates .indentGuidesVisible", ->
-        presenter = new TextEditorPresenter(model: editor, clientHeight: 25, clientWidth: 50, scrollTop: 0, baseCharacterWidth: 10, lineHeight: 10, lineOverdrawMargin: 0)
+        presenter = new TextEditorPresenter(model: editor)
         expect(presenter.state.content.indentGuidesVisible).toBe false
 
         atom.config.set('editor.showIndentGuide', true)


      it "includes the .endOfLineInvisibles in the line state if the editor.showInvisibles config option is true", ->
        editor.setText("hello\nworld\r\n")
        presenter = new TextEditorPresenter(model: editor, clientHeight: 25, clientWidth: 50, scrollTop: 0, baseCharacterWidth: 10, lineHeight: 10, lineOverdrawMargin: 0)
        expect(lineStateForScreenRow(presenter, 0).endOfLineInvisibles).toBeNull()
        expect(lineStateForScreenRow(presenter, 1).endOfLineInvisibles).toBeNull()

        atom.config.set('editor.showInvisibles', true)
        presenter = new TextEditorPresenter(model: editor, clientHeight: 25, clientWidth: 50, scrollTop: 0, baseCharacterWidth: 10, lineHeight: 10, lineOverdrawMargin: 0)
        expect(lineStateForScreenRow(presenter, 0).endOfLineInvisibles).toEqual [atom.config.get('editor.invisibles.eol')]
        expect(lineStateForScreenRow(presenter, 1).endOfLineInvisibles).toEqual [atom.config.get('editor.invisibles.cr'), atom.config.get('editor.invisibles.eol')]



    describe "when ::softWrapped changes on the editor", ->
      it "only accounts for the cursor in .scrollWidth if ::softWrapped is false", ->
        presenter = new TextEditorPresenter(model: editor, clientWidth: 50, baseCharacterWidth: 10)
        expect(presenter.state.content.scrollWidth).toBe 10 * editor.getMaxScreenLineLength() + 1
        editor.setSoftWrapped(true)
        expect(presenter.state.content.scrollWidth).toBe 10 * editor.getMaxScreenLineLength()
