🐞 fix(test): 修改 accuse 接口测试中的参数类型
This commit is contained in:
@@ -389,7 +389,7 @@ describe('聊天测试', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('举报消息', function (done) {
|
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);
|
checkSuccessResponse(res);
|
||||||
expect(res.data).to.be.an('object');
|
expect(res.data).to.be.an('object');
|
||||||
expect(res.data.roleId).to.be.equal(roleInfo.roleId);
|
expect(res.data.roleId).to.be.equal(roleInfo.roleId);
|
||||||
|
|||||||
Reference in New Issue
Block a user