测试:jenkins
This commit is contained in:
@@ -139,7 +139,7 @@ describe('聊天测试', function () {
|
||||
});
|
||||
|
||||
it('获取私聊历史消息', function (done) {
|
||||
pinusClient.request('chat.chatHandler.getPrivateMessage', { targetRoleId: roleInfoT.roleId }, (res) => {
|
||||
pinusClient.request('chat.chatHandler.getPrivateMessage', { targetRoleId: roleInfoT.roleId, count: 10 }, (res) => {
|
||||
checkSuccessResponse(res);
|
||||
expect(res.data.targetRoleId).to.be.a('string');
|
||||
expect(res.data.msgs).to.be.an('array');
|
||||
@@ -389,7 +389,7 @@ describe('聊天测试', function () {
|
||||
});
|
||||
|
||||
it('举报消息', function (done) {
|
||||
pinusClient.request('chat.chatHandler.accuse', { targetRoleId: roleInfoT.roleId, targetMsgCode: 'test', reason: 1 }, (res) => {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user