How can i use http-mock for post method


I found in post’/’, function(req, res) { res.status(202).end(); });

I want create some record. But there is no default implementation of post method here. How can i do this. any help will be appreciated.


What do you mean be ‘create’ As it’s a mock, you are not really creating things.

Do you mean that you want to return some kind of persistent response?