New to unit testing an API.
Using Chai, I am trying to test a POST request to an API. Basically, the POST request should add the details into the database and send a confirmation email to the entered email address.
My tests checks for the data been added to the database. But whenever the test is run, it does not sends the confirmation email from the POST request.
Aucun commentaire:
Enregistrer un commentaire