mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add trailing whitespace to line
This commit is contained in:
@@ -3412,6 +3412,9 @@ describe "TextEditor", ->
|
||||
describe "when no text is selected", ->
|
||||
describe "when the line below isn't empty", ->
|
||||
it "joins the line below with the current line separated by a space and moves the cursor to the start of line that was moved up", ->
|
||||
editor.setCursorBufferPosition([0, Infinity])
|
||||
editor.insertText(' ')
|
||||
editor.setCursorBufferPosition([0])
|
||||
editor.joinLines()
|
||||
expect(editor.lineTextForBufferRow(0)).toBe 'var quicksort = function () { var sort = function(items) {'
|
||||
expect(editor.getCursorBufferPosition()).toEqual [0, 29]
|
||||
|
||||
Reference in New Issue
Block a user