     pack = 'language-coffee-script'
 
     getEnsureRowText = (row, cursor) ->
-      (_keystroke, rowText) ->
-        keystroke _keystroke
-        expect(editor.lineTextForBufferRow(row)).toBe rowText
-        ensure cursor: cursor
+      (keystroke, rowText) ->
+        ensure keystroke
+        expect(editor.lineTextForBufferRow(row)).toBe(rowText)
+        ensure null, cursor: cursor
 
     beforeEach ->
       waitsForPromise ->

      getVimState 'sample.coffee', (state, vim) ->
        vimState = state
        {editor, editorElement} = state
        {set, ensure, keystroke} = vim

    afterEach ->
      atom.packages.deactivatePackage(pack)

  activationPromise

describe "vim-mode-plus-jasmine-increase-focus", ->
  [set, ensure, editor, editorElement, vimState] = []

  beforeEach ->
    atom.keymaps.add "test",
