Recently I switched from using callbacks to using promise in my rest api express app. But I'm having trouble with unit testing routes/controller with async behaviour of the promise. Here is the sample code that needs to be unit tested.Recently I switched from using callbacks to usi