-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test/user with async await #144
Conversation
I mean don´t execute sendEmail it's no so simple. Because we need to test all the rest of Code. I was seeing a way to do it but I can't yet. |
the problem of slow feedback on test is solved in PR #158 |
mock nodemailer for dont sent emails
User test without done() callback.
I don't use generateEmail() because the mocha User o Admin User is deleted after every test.
with this, all the test are isolated and leaves no trace in DB.
What do you think about this @sylvansson ?
@martinbedouret we should stub the email server process to remove the increment of the timeout on the test. like Simon says in #132 PR
https://sinonjs.org/releases/latest/stubs/