我正在使用angular-cli测试框架。在我的组件中,我使用了“ng2-slim-loading-bar”节点模块。submit(){this._slimLoadingBarService.start(()=>{});//methodoperations}现在,当我测试这个组件时,我已经将spyOn这个服务应用为:beforeEach(()=>{letslimLoadingBarService=newSlimLoadingBarService();demoComponent=newDemoComponent(slimLoadingBarService);TestBed.configu