title: How to make test case for angular animations
body: <p>I use karma to write angular2 test cases, but have no idea how to test animations. I tried to get and check the transform attributes of host element, but got 'none', neither the 'getCalculateStyle()' method can work.
  Any suggestions? </p>
  
  <p>Example code to test:</p>
  
  <pre><code>func2Test() {
      const animations: AnimationMetadata[] = [animate('500ms ease-in', style({transform: `translate3d(100px, 0px, 0px)`}))];
      const myAnimation: AnimationFactory = this.animationBuilder.build(animations);
      const player = myAnimation.create(this.slickTrack.nativeElement);
      player.play();
  }
  </code></pre>