animateJsConstructor = function() {
        var animator = $delegate.apply($delegate, arguments);
        // If no javascript animation is found, animator is undefined
        if (animator) {
          runners.push(animator);
        }
        return animator;
      }
@ngdoc service
@name $animate

@description
Mock implementation of the {@link ng.$animate `$animate`} service. Exposes two additional methods
for testing animations.