聊天:举报接口及测试

This commit is contained in:
liangtongchuan
2021-03-11 17:27:37 +08:00
parent 3bbd8627bd
commit f91818b354
4 changed files with 64 additions and 18 deletions
+11
View File
@@ -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();
});
});
});