我是靠谱客的博主 潇洒诺言,这篇文章主要介绍jasmine.FunctionMatchers.toHaveBeenCalledWith的单步调试,现在分享给大家,希望可以做个参考。

待测试的代码:

checkoutConfigService会调用getPreferredDeliveryMode, 输入的参数值为deliveryModes:

deliveryModes的数据来源为:

往上看,deliveryModes的根源是supportedDeliveryModes:

所以FunctionMatchers.toHaveBeenCalledWith的参数为mockSupportedDeliveryModes:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

最后

以上就是潇洒诺言最近收集整理的关于jasmine.FunctionMatchers.toHaveBeenCalledWith的单步调试的全部内容,更多相关jasmine.FunctionMatchers.toHaveBeenCalledWith内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(119)

评论列表共有 0 条评论

立即
投稿
返回
顶部