From c2ba90afcc3eb9e12fd8790057c41db2ead65bc9 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Fri, 4 Dec 2015 09:13:50 -0600 Subject: [PATCH] tests(fix): Add return to expect promise in create task test --- test/api/v3/integration/tasks/POST-create_task.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/api/v3/integration/tasks/POST-create_task.test.js b/test/api/v3/integration/tasks/POST-create_task.test.js index b76d6ceb4e..b37ef37a62 100644 --- a/test/api/v3/integration/tasks/POST-create_task.test.js +++ b/test/api/v3/integration/tasks/POST-create_task.test.js @@ -19,7 +19,7 @@ describe('POST /tasks', () => { context('checks "req.body.type"', () => { it('returns an error if req.body.type is absent', () => { - expect(api.post('/tasks', { + return expect(api.post('/tasks', { notType: 'habit', })).to.eventually.be.rejected.and.eql({ code: 400, @@ -29,7 +29,7 @@ describe('POST /tasks', () => { }); it('returns an error if req.body.type is not valid', () => { - expect(api.post('/tasks', { + return expect(api.post('/tasks', { type: 'habitF', })).to.eventually.be.rejected.and.eql({ code: 400,