How to expect a logger to throw an error and pass a unit test at the same time?

后端 未结 0 403
余生分开走
余生分开走 2021-01-20 19:23

I\'ve got a function which I need to write a unit test for. I\'m going to "forget" to pass one parameter, so I expect a logger to log an error.
I use j

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