【发布时间】:2020-10-20 09:56:14
【问题描述】:
我的方法:
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
});
谁能帮我写expect语句....
谢谢。!!!
【问题讨论】: