How to mock return value to a function multiple times

前端 未结 0 1469
情书的邮戳
情书的邮戳 2020-12-13 03:43

I have func1() which calls func2() multiple times based on different inputs. I now want to write a unit test for func1() by mocking return value of func2(). func2() returns

相关标签:
回答
  • 消灭零回复
提交回复
热议问题