mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Changed new comment's status from null to NONE.
This commit is contained in:
@@ -131,7 +131,7 @@ describe('services.CommentsService', () => {
|
||||
|
||||
expect(c2).to.not.be.null;
|
||||
expect(c2.id).to.be.uuid;
|
||||
expect(c2.status).to.be.null;
|
||||
expect(c2.status).to.be.equal('NONE');
|
||||
|
||||
expect(c3).to.not.be.null;
|
||||
expect(c3.id).to.be.uuid;
|
||||
@@ -225,7 +225,7 @@ describe('services.CommentsService', () => {
|
||||
|
||||
return CommentsService.findById(comment_id)
|
||||
.then((c) => {
|
||||
expect(c.status).to.be.null;
|
||||
expect(c.status).to.be.equal('NONE');
|
||||
|
||||
return CommentsService.pushStatus(comment_id, 'REJECTED', '123');
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user