Fixed unpromised rejection in test.

This commit is contained in:
gaba
2016-12-20 18:01:28 -08:00
parent 9c9597ae8c
commit 29250f2bbc
+1 -2
View File
@@ -29,8 +29,7 @@ describe('/api/v1/auth/local', () => {
describe('#post', () => {
it('should send back the user on a successful login', () => {
agent
.get('/api/v1/auth')
return agent.get('/api/v1/auth')
.then((res) => {
expect(res.status).to.be.equal(200);
expect(res.body).to.have.property('csrfToken');