       it 'can get and set the right direction from #_xDirectionInput', ->
         runRunUpdatesUntil 'start', backwards: yes
 
-        expect(player._xDirectionInput()).toBe Player.Direction.Left
-        expect(player.nextDirection).toBe Player.Direction.Left
+        expect(player._xDirectionInput()).toBe Direction.Left
+        expect(player.nextDirection).toBe Direction.Left
 
       describe 'when still', ->
         beforeEach -> runRunUpdatesUntil 'start', backwards: yes
 
         it 'will immediately (end) turn and begin to run', ->
           expect(player._isTurning).toBe yes
-          expect(player.direction).toBe Player.Direction.Left
+          expect(player.direction).toBe Direction.Left
           expect(player._beginRun).toHaveBeenCalled()
 
         it 'will play start animation', testStartAnimation

  'test/fakes'
], (Phaser, _, Player, fakes) ->

  describe 'Player', ->
    game = null
    player = null


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

      cursors.up.isDown = no
      cursors.up.isUp = yes
      player.velocity.y = 1
      player.update() # End jump.
      player.update() # Fall.
