       editor.setCursorBufferPosition([0, 5])
 
       editLine.trigger()
-      expect(editor.getText()).toBe """
-      
-      
-      """
+      expect(editor.getText()).toBe ["", ""].join("\n")
 
     it "not continue after empty ordered list line", ->
-      editor.setText """
-      1. [ ] parent
-        - child
-        - 
-      """ # last item with trailing whitespace
+      editor.setText [
+        "1. [ ] parent"
+        "  - child"
+        "  - " # last item with trailing whitespace
+      ].join("\n")
       editor.setCursorBufferPosition([2, 4])
 
       editLine.trigger()
-      expect(editor.getText()).toBe """
-      1. [ ] parent
-        - child
-      2. [ ] 
-      """ # last item with trailing whitespace
+      expect(editor.getText()).toBe [
+        "1. [ ] parent"
+        "  - child"
+        "2. [ ] " # last item with trailing whitespace
+      ].join("\n")
 
     it "not continue after empty ordered paragraph", ->
-      editor.setText """
-      1. parent
-        - child has a paragraph
-
-          paragraph one
-
-          paragraph two
-
-        - 
-      """ # last item with trailing whitespace
+      editor.setText [
+        "1. parent"
+        "  - child has a paragraph"
+        ""
+        "    paragraph one"
+        ""
+        "    paragraph two"
+        ""
+        "  - " # last item with trailing whitespace
+      ].join("\n")
       editor.setCursorBufferPosition([7, 4])
 
       editLine.trigger()
-      expect(editor.getText()).toBe """
-      1. parent
-        - child has a paragraph
-
-          paragraph one
-
-          paragraph two
-
-      2. 
-      """ # last item with trailing whitespace
+      expect(editor.getText()).toBe [
+        "1. parent"
+        "  - child has a paragraph"
+        ""
+        "    paragraph one"
+        ""
+        "    paragraph two"
+        ""
+        "2. " # last item with trailing whitespace
+      ].join("\n")
 
   describe "indentListLine", ->
     beforeEach -> editLine = new EditLine("indent-list-line")

# coffeelint: disable=no_trailing_whitespace

EditLine = require "../../lib/commands/edit-line"

describe "EditLine", ->

      editor.setCursorBufferPosition([0, 69])

      editLine.trigger()
      expect(editor.getText()).toBe [
        "> Your time is limited, so don’t waste it living someone else’s life."
        "> " # last item with trailing whitespace
      ].join("\n")

    it "not continue after empty unordered task list line", ->
      editor.setText """
