How to write Unit test for a method which returns anonymous function

后端 未结 0 1285
梦如初夏
梦如初夏 2020-12-01 13:57

I am writing unit test case(jest) for a method which return anonymous function. for the function i need to pass entity name and for anonymous function, it takes this(mongoos

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