From 29250f2bbccff68c40e54ecb3073951d23a36a34 Mon Sep 17 00:00:00 2001 From: gaba Date: Tue, 20 Dec 2016 18:01:28 -0800 Subject: [PATCH] Fixed unpromised rejection in test. --- tests/routes/api/auth/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/routes/api/auth/index.js b/tests/routes/api/auth/index.js index 4638ca833..11791ab28 100644 --- a/tests/routes/api/auth/index.js +++ b/tests/routes/api/auth/index.js @@ -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');