Improve test to remove comment.

This commit is contained in:
gaba
2016-11-07 13:11:43 -08:00
parent d911e5b30d
commit 8154133fe2
+3
View File
@@ -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();
});
});