From 29c956e66f7962ed249d0b2a7e0732a13ec58be9 Mon Sep 17 00:00:00 2001 From: Wliu Date: Mon, 6 Feb 2017 22:59:47 -0500 Subject: [PATCH] Spec! --- spec/text-editor-spec.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index 911270d16..9a2a44d6c 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -5961,7 +5961,7 @@ describe "TextEditor", -> expect(editor.getGrammar().name).toBe 'CoffeeScript' describe "softWrapAtPreferredLineLength", -> - it "soft wraps the editor at the preferred line length unless the editor is narrower", -> + it "soft wraps the editor at the preferred line length unless the editor is narrower or the editor is mini", -> editor.update({ editorWidthInChars: 30 softWrapped: true @@ -5974,6 +5974,9 @@ describe "TextEditor", -> editor.update({editorWidthInChars: 10}) expect(editor.lineTextForScreenRow(0)).toBe 'var ' + editor.update({mini: true}) + expect(editor.lineTextForScreenRow(0)).toBe 'var quicksort = function () {' + describe "softWrapHangingIndentLength", -> it "controls how much extra indentation is applied to soft-wrapped lines", -> editor.setText('123456789')