Silly commit.

This commit is contained in:
gaba
2016-12-16 19:44:01 -08:00
parent dd032521c0
commit 4172066c94
+1 -1
View File
@@ -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);