           editSession.redo()
           expect(editSession.getSelectedBufferRanges()).toEqual [[[1, 6], [1, 6]], [[1, 18], [1, 18]]]
 
-        it "restores folds after undo and redo", ->
+        xit "restores folds after undo and redo", ->
           editSession.foldBufferRow(1)
           editSession.setSelectedBufferRange([[1, 0], [10, Infinity]], preserveFolds: true)
           expect(editSession.isFoldedAtBufferRow(1)).toBeTruthy()

          expect(buffer.lineForRow(6)).toBe(line7)
          expect(buffer.getLineCount()).toBe(count - 1)

      xdescribe "when the line being deleted preceeds a fold, and the command is undone", ->
        it "restores the line and preserves the fold", ->
          editSession.setCursorBufferPosition([4])
          editSession.foldCurrentRow()

          editSession.toggleLineCommentsInSelection()
          expect(buffer.lineForRow(10)).toBe "  "

      describe ".undo() and .redo()", ->
        it "undoes/redoes the last change", ->
          editSession.insertText("foo")
          editSession.undo()
