afterEach(function() { Cylon.Utils.constantly.restore(); SDL.init.restore(); SDL.numJoysticks.restore(); SDL.Joystick.restore(); });