   'test/fakes'
 ], (Phaser, _, Player, fakes) ->
 
+  {Direction} = Player
+
   describe 'Player', ->
+    cursors = null
     game = null
     player = null
 

      player._initPhysics()
      player._initState()

    endAnimation = ->
      player.animation.isPlaying = no
      player.animation.isFinished = yes

    initialYAcceleration = null
    runJumpUpdatesUntil = (stopAt) ->
      player.cursors.up.isDown = yes
      initialYAcceleration = player.acceleration.y
      player.update()
      return if stopAt is 'rising'

        player.update()
        return if stopAt is 'still'

      cursors.right.isDown = no
      cursors.left.isDown = yes
      player.update()
      return if stopAt is 'turn'

