how to mock a method using callArgsWith or yields

前端 未结 0 743
闹比i
闹比i 2020-12-29 08:26

How do you mock an outer method calling a callback using sinon? Example given the following code, createTable should return \'a string\' as response in the callback function

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