mirror of
https://github.com/wassname/talk.git
synced 2026-08-06 13:41:02 +08:00
Improve test to remove comment.
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user