why I'm getting 404 instead of 400 when using jest with mongoose?

后端 未结 0 1638
深忆病人
深忆病人 2021-01-26 03:07

i want to prevent a "blog" to be submitted if it doesn\'t have a \'url\' or a \'title\'.

i have a mongoose model

const blogSchema = new mongoose.         


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