Move config handling out of LanguageMode

This commit is contained in:
Max Brunsfeld
2016-07-12 14:19:35 -07:00
parent 6fe4ce56c7
commit 5adb087ab1
5 changed files with 58 additions and 23 deletions

View File

@@ -107,7 +107,7 @@ describe "LanguageMode", ->
expect(languageMode.suggestedIndentForBufferRow(11)).toBe 1
it "does not take invisibles into account", ->
atom.config.set('editor.showInvisibles', true)
editor.setShowInvisibles(true)
expect(languageMode.suggestedIndentForBufferRow(0)).toBe 0
expect(languageMode.suggestedIndentForBufferRow(1)).toBe 1
expect(languageMode.suggestedIndentForBufferRow(2)).toBe 2