测试:客户端接收服务器回调相关方法;打开之前关闭的 protobuf;修改pinus机器人代码
This commit is contained in:
@@ -73,6 +73,15 @@ describe('寻宝创建队伍', function() {
|
||||
});
|
||||
|
||||
it('两个玩家匹配到结算', function(done) {
|
||||
pinusClient.on('onTeammateAct', (msg) => {
|
||||
console.log('onTeammateAct: ', msg);
|
||||
});
|
||||
pinusClient.on('onComBtlStart', (msg) => {
|
||||
console.log('onComBtlStart: ', msg);
|
||||
});
|
||||
pinusClient.on('onTeamJoin', (msg) => {
|
||||
console.log('onTeamJoin: ', msg);
|
||||
});
|
||||
pinusClient.request('battle.comBattleHandler.createTeam', createTeamParms, (res) => {
|
||||
checkSuccessResponse(res);
|
||||
expect(res.data.teamCode).to.be.a('string');
|
||||
|
||||
Reference in New Issue
Block a user