How to test an express API endpoint on a failing condition, using jest and supertest?

后端 未结 0 1653
悲&欢浪女
悲&欢浪女 2021-01-17 11:09

I have a endpoint(/api/users/) which registers a user.
It shows error if the conditons on \'name\', \'email\' and \'password\' are not met, which are set by express-va

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