Test a nodejs action of mailer
completed by: Namanyay
mentors: Aruna Herath
We have put together a small nodejs server that can send emails using nodemailer.
We don't want to test its working by sending emails and checking our inboxes because its too tedious. So your task will be to add some automated tests to it.
There is a test already there that does not work. But it can be revamped to a good working test.
Use mocha to run this test.
npm install -g mocha
test that needs some work(https://github.com/fossasia/mailer/blob/master/tests/testRootPost.js#L5)