Suppose I have the following route:
router.get('/users', controller.authenticate, controller.generateList, controller.sendList);
I now want to test each function controller.authenticate, .generateList, .sendList separately.
I've seen posts that claim supertest can do this, but I fail to see how.
Aucun commentaire:
Enregistrer un commentaire