       el = element.getDOMNode().querySelector('.child')
       expect(el).toExist()
 
-    it 'should have children', ->
-      el = element.refs.shortcut
-      console.log el
+    it 'should fire shortcuts handler', ->
+      obj = preventDefault: ->
+      el = element.refs.shortcut._handleShortcuts(obj, 'left')
+      expect(spy).toHaveBeenCalled()

Shortcuts = null
Test = null
props = {}


describe 'Shortcuts component: ', ->

      getChildContext: ->
        shortcuts: shortcutsManager

      _handleShortcuts: (command) ->
        switch command
          when 'MOVE_LEFT' then spyFn(spy)

      render: ->
        props.handler = @_handleShortcuts
