How do I mock Mongoose calls without mocking the callback logic in exec?

前端 未结 0 421
花落未央
花落未央 2021-02-09 16:19

I\'ve written a test against my itemService function getItemsForUser to assert on the Items returned from a Mongoose find call. However, my te

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