From b1f5583c4e83e00b476ab08fcf89d46e0d4e9bf2 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 12 Jul 2016 11:31:03 -0700 Subject: [PATCH] Remove stray usages of atom.config in text-editor-spec --- spec/text-editor-spec.coffee | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index 26caa6699..e2164e266 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -648,7 +648,7 @@ describe "TextEditor", -> describe "when invisible characters are enabled with soft tabs", -> it "moves to the first character of the current line without being confused by the invisible characters", -> - atom.config.set('editor.showInvisibles', true) + editor.setShowInvisibles(true) editor.setCursorScreenPosition [1, 7] editor.moveToFirstCharacterOfLine() expect(editor.getCursorBufferPosition()).toEqual [1, 2] @@ -657,7 +657,7 @@ describe "TextEditor", -> describe "when invisible characters are enabled with hard tabs", -> it "moves to the first character of the current line without being confused by the invisible characters", -> - atom.config.set('editor.showInvisibles', true) + editor.setShowInvisibles(true) buffer.setTextInRange([[1, 0], [1, Infinity]], '\t\t\ta', normalizeLineEndings: false) editor.setCursorScreenPosition [1, 7] @@ -5388,7 +5388,7 @@ describe "TextEditor", -> describe "when the editor has a height and lineHeightInPixels", -> beforeEach -> - atom.config.set('editor.scrollPastEnd', true) + editor.setScrollPastEnd(true) editor.setHeight(100, true) editor.setLineHeightInPixels(10) @@ -5427,8 +5427,7 @@ describe "TextEditor", -> describe "when the 'editor.scrollPastEnd' option is set to false", -> it "ensures that the bottom row is less than the buffer's line count", -> - atom.config.set('editor.scrollPastEnd', false) - + editor.setScrollPastEnd(false) editor.setFirstVisibleScreenRow(95) expect(editor.getFirstVisibleScreenRow()).toEqual 89 expect(editor.getVisibleRowRange()).toEqual [89, 99]