queueFn = function() {
        return function(fn) {
          queue.push(fn);
        };
      }
@ngdoc service
@name $animate

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

You need to require the `ngAnimateMock` module in your test suite for instance `beforeEach(module('ngAnimateMock'))`