How to test if express router get method is called, with jest?

后端 未结 0 1163
被撕碎了的回忆
被撕碎了的回忆 2020-12-16 08:57

I am trying to test if a correct middlewares are assigned to a specific route. For that, I need to check if the router\'s method is called. I mocked the express router as fo

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