From 9e70b86687879313c86eeb0dce74fd40c6bc736a Mon Sep 17 00:00:00 2001 From: gaba Date: Mon, 7 Nov 2016 12:29:07 -0800 Subject: [PATCH] Fix tests. --- tests/routes/api/comments/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/routes/api/comments/index.js b/tests/routes/api/comments/index.js index 5fb28a8e7..887ad679d 100644 --- a/tests/routes/api/comments/index.js +++ b/tests/routes/api/comments/index.js @@ -308,7 +308,8 @@ describe('Post /:comment_id/status', () => { chai.request(app) .post('/api/v1/comments/abc/status') .send({'status': 'accepted'}) - .end(function(res){ + .end(function(err, res){ + expect(err).to.be.null; expect(res).to.have.status(200); expect(res).to.have.body; done(); @@ -365,7 +366,8 @@ describe('Post /:comment_id/actions', () => { chai.request(app) .post('/api/v1/comments/abc/actions') .send({'user_id': '456', 'action_type': 'flag'}) - .end(function(res){ + .end(function(err, res){ + expect(err).to.be.null; expect(res).to.have.status(200); done(); });