From 8154133fe20c235c370b0a7794c87bfc0bf28c4b Mon Sep 17 00:00:00 2001 From: gaba Date: Mon, 7 Nov 2016 13:11:43 -0800 Subject: [PATCH] Improve test to remove comment. --- tests/routes/api/comments/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/routes/api/comments/index.js b/tests/routes/api/comments/index.js index f55ac98af..4fbe52e94 100644 --- a/tests/routes/api/comments/index.js +++ b/tests/routes/api/comments/index.js @@ -259,6 +259,9 @@ describe('Delete /:comment_id', () => { .delete('/api/v1/comments/abc') .end(function(err, res){ expect(res).to.have.status(201); + Comment.findById({'id': 'abc'}).then((comment) => { + expect(comment).to.be.null; + }); done(); }); });