Make editor component spec pass

This commit is contained in:
probablycorey
2014-05-20 14:07:36 -07:00
parent 25e3ae0325
commit a722d1aa36

View File

@@ -111,6 +111,7 @@ describe "EditorComponent", ->
expect(component.lineNodeForScreenRow(0).textContent).toBe "#{invisibles.space}a line with tabs#{invisibles.tab} and spaces#{invisibles.space}#{invisibles.eol}"
it "displays spaces, tabs, and newlines as visible characters", ->
editor.setText " a line with tabs\tand spaces "
expect(component.lineNodeForScreenRow(0).textContent).toBe "#{invisibles.space}a line with tabs#{invisibles.tab} and spaces#{invisibles.space}#{invisibles.eol}"
it "displays newlines as their own token outside of the other tokens scope", ->