聊天:举报接口及测试
This commit is contained in:
@@ -368,4 +368,15 @@ describe('聊天测试', function() {
|
||||
});
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
it('举报消息', function(done) {
|
||||
pinusClient.request('chat.chatHandler.accuse', {targetRoleId: roleInfoT.roleId, targetMsgCode: 'test', reason: 1}, (res) => {
|
||||
checkSuccessResponse(res);
|
||||
expect(res.data).to.be.an('object');
|
||||
expect(res.data.roleId).to.be.equal(roleInfo.roleId);
|
||||
expect(res.data.targetRoleId).to.be.equal(roleInfoT.roleId);
|
||||
expect(res.data.targetMsgCode).to.be.equal('test');
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user