mirror of
https://github.com/wassname/talk.git
synced 2026-07-14 11:18:50 +08:00
Silly commit.
This commit is contained in:
@@ -31,7 +31,7 @@ describe('/api/v1/auth/local', () => {
|
||||
it('should send back the user on a successful login', () => {
|
||||
return chai.request(app)
|
||||
.post('/api/v1/auth/local')
|
||||
.field('_csrf', req.csrfToken())
|
||||
.field('_csrf', 'generate csrf token') <--- we need to generate the csrf token that needs to be send from the request
|
||||
.send({email: 'maria@gmail.com', password: 'password!'})
|
||||
.catch((res) => {
|
||||
expect(res).to.have.status(200);
|
||||
|
||||
Reference in New Issue
Block a user