mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Merge branch 'master' into 142993479-tags
This commit is contained in:
@@ -204,7 +204,7 @@ describe('services.CommentsService', () => {
|
||||
it('should return all comments if admin', () => {
|
||||
return CommentsService
|
||||
.findByUserId('456', true)
|
||||
.then(comments => {
|
||||
.then((comments) => {
|
||||
expect(comments).to.have.length(4);
|
||||
});
|
||||
});
|
||||
@@ -212,7 +212,7 @@ describe('services.CommentsService', () => {
|
||||
it('should not return premod and rejected comments if not admin', () => {
|
||||
return CommentsService
|
||||
.findByUserId('456')
|
||||
.then(comments => {
|
||||
.then((comments) => {
|
||||
expect(comments).to.have.length(1);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user