待测试的代码:
checkoutConfigService会调用getPreferredDeliveryMode, 输入的参数值为deliveryModes:

deliveryModes的数据来源为:

往上看,deliveryModes的根源是supportedDeliveryModes:

所以FunctionMatchers.toHaveBeenCalledWith的参数为mockSupportedDeliveryModes:

待测试的代码:
checkoutConfigService会调用getPreferredDeliveryMode, 输入的参数值为deliveryModes:
deliveryModes的数据来源为:
往上看,deliveryModes的根源是supportedDeliveryModes:
所以FunctionMatchers.toHaveBeenCalledWith的参数为mockSupportedDeliveryModes:
本文标题:jasmine.FunctionMatchers.toHaveB
本文链接:https://www.haomeiwen.com/subject/jkyxmktx.html
网友评论