My method :
flyout() {
document.getElementById("transition1").style.cssText="transform:translateX(-120%)";
document.getElementById("transition2").style.cssText="transform:translateY(-120%)";
}
spec.ts :
it('Tesing Void function', function() {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const component = fixture.debugElement.componentInstance;
component.flyOut();
// How should I write expect statement
});
Can anyone help me how to write expect statment....
Thanks.!!!
You can query your element in your expect and check whether the style has been applied or not.