           expect(editor.getText()).toBe("12345")
 
     describe "when followed by an k", ->
-      beforeEach ->
-        @originalText = "12345\nabcde\nABCDE"
-        editor.setText(@originalText)
+      originalText = "12345\nabcde\nABCDE"
+
+      beforeEach ->
+        editor.setText(originalText)
 
       describe "on the end of the file", ->
         beforeEach ->

        expect(editorElement.classList.contains('command-mode')).toBe(true)

    describe "when followed by an j", ->
      beforeEach ->
        @originalText = "12345\nabcde\nABCDE"
        editor.setText(@originalText)

      describe "on the beginning of the file", ->
        beforeEach ->

        it "deletes nothing", ->
          keydown('d')
          keydown('j')
          expect(editor.getText()).toBe(originalText)

      describe "on the middle of second line", ->
        beforeEach ->
