How to unit test with a file upload in mocha

后端 未结 7 1192
走了就别回头了
走了就别回头了 2020-12-14 15:11

I have an app built on Express.js and I\'d like to test the file upload functionality. I\'m trying to reproduce the object parsed to req.files (when using express.bodyParser

7条回答
提交回复
热议问题