diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index ec4a96359..efe023a21 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -5918,3 +5918,12 @@ describe "TextEditor", -> describe "::getElement", -> it "returns an element", -> expect(editor.getElement() instanceof HTMLElement).toBe(true) + + describe 'setMaxScreenLineLength', -> + it "sets the maximum line length in the editor before soft wrapping is forced", -> + expect(editor.maxScreenLineLength()).toBe 500 + editor.update({ + maxScreenLineLength: 1500 + }) + expect(editor.maxScreenLineLength()).toBe 1500 +