阅读背景:

单元测试使用模拟使用请求,管道和流的私有方法

来源:互联网 

I want to unit test the exported method in the code below. I want to mock the values in the private method to control the reject/resolves of the returned Promise. I want to unit test the exported method in the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: