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?
Example code to test:
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();
}