From 6346d0550508e090bce901a2b278c01650640228 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 9 Aug 2016 10:20:49 -0700 Subject: [PATCH] Remove last use of atom.config in text editor spec --- spec/text-editor-spec.coffee | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index f96b7b9f3..a4c5ff4f5 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -5748,7 +5748,7 @@ describe "TextEditor", -> expect(editor.getGrammar().name).toBe 'CoffeeScript' - describe "the softWrapAtPreferredLineLength config setting", -> + describe "::setSoftWrapAtPreferredLineLength", -> it "soft wraps the editor at the preferred line length unless the editor is narrower", -> editor.setEditorWidthInChars(30) editor.setSoftWrapped(true) @@ -5760,15 +5760,15 @@ describe "TextEditor", -> editor.setEditorWidthInChars(10) expect(editor.lineTextForScreenRow(0)).toBe 'var ' - describe "the softWrapHangingIndent setting", -> + describe "::setSoftWrapIndentLength", -> it "controls how much extra indentation is applied to soft-wrapped lines", -> editor.setText('123456789') editor.setEditorWidthInChars(8) - atom.config.set('editor.softWrap', true) - atom.config.set('editor.softWrapHangingIndent', 2) + editor.setSoftWrapped(true) + editor.setSoftWrapIndentLength(2) expect(editor.lineTextForScreenRow(1)).toEqual ' 9' - atom.config.set('editor.softWrapHangingIndent', 4) + editor.setSoftWrapIndentLength(4) expect(editor.lineTextForScreenRow(1)).toEqual ' 9' describe "::getElement", ->