Fork join spyon in jasmine angular

问题描述 投票:0回答:0

你能指导我如何在 angular jasmine 测试用例中模拟 fork join 函数吗?

测试(){

forkjoin( this.httpservice.postData('url1').

,json.strigfy(this.json)), this.httpservice.postData('url2').

,json.strigfy(data)).subscribe (响应=>);

}

jasmine fork-join
© www.soinside.com 2019 - 2024. All rights reserved.