Monday, 7 March 2016

Expressjs Controllers Unit Testing

I am having problems while trying to unit test Expressjs Controllers that are calling a lot of Promises. If I put the done() callback inside res.json, it will never get called if the controller change, thus the test reporting will never show any information.In general, Im finding unit testing of controller to be very frustrating. I was wondering if you are testing them and how and if you've ever experienced similar issues.Thanks

Submitted March 07, 2016 at 04:23PM by kostarelo

No comments:

Post a Comment