       getChildContext: ->
         shortcuts: shortcutsManager
 
-      _handleShortcuts: ->
+      _handleShortcuts: (command) ->
+        switch command
+          when 'MOVE_LEFT' then spyFn(spy)
 
       render: ->
         props.handler = @_handleShortcuts

Shortcuts = null
Test = null
props = {}


describe 'Shortcuts component: ', ->

      el = element.getDOMNode().querySelector('.child')
      expect(el).toExist()

    it 'should fire shortcuts handler', ->
      obj = preventDefault: ->
      el = element.refs.shortcut._handleShortcuts(obj, 'left')
      expect(spy).toHaveBeenCalled()
