-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Server tests : Authentication in Mocha + Chai + Sinon #2168
Comments
If you look at the top of the file you should see |
@Awk34 Excuse me for the confusion. In fact, I hesitated to ask the question here or on stackoverflow. More globally, I try to find the cleanest way to "log an user" to make several authenticated sets of tests. Should we have to use the superset Agent ? (ladjs/supertest#46). I try it, but I'm also confused between cookies and token. |
This question has been asked a few times, which I can see with this search I think you'll find what you're looking for in those issues. |
I can't find a solution to run integration tests under authentication.
Is the Chai
.auth('user', 'pass')
working ?The text was updated successfully, but these errors were encountered: