From d581c41c0e195fb340b5faad87b6a8be1cef61c2 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 11 Dec 2014 16:27:23 -0800 Subject: [PATCH] Update spec since { lines now outdent in JS --- spec/text-editor-spec.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index 5e71b6197..b84b3b944 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -3420,11 +3420,11 @@ describe "TextEditor", -> describe "when the cursor is before whitespace", -> it "retains the whitespace following the cursor on the new line", -> editor.setText(" var sort = function() {}") - editor.setCursorScreenPosition([0, 23]) + editor.setCursorScreenPosition([0, 12]) editor.insertNewline() - expect(buffer.lineForRow(0)).toBe ' var sort = function()' - expect(buffer.lineForRow(1)).toBe ' {}' + expect(buffer.lineForRow(0)).toBe ' var sort =' + expect(buffer.lineForRow(1)).toBe ' function() {}' expect(editor.getCursorScreenPosition()).toEqual [1, 2] describe "when inserted text matches a decrease indent pattern", ->