寻宝:修改测试用例字段检查
This commit is contained in:
@@ -70,7 +70,7 @@ describe('寻宝创建队伍', function() {
|
|||||||
expect(res.data.teamCode).to.be.a('string');
|
expect(res.data.teamCode).to.be.a('string');
|
||||||
expect(res.data.roleStatus).to.be.an('array');
|
expect(res.data.roleStatus).to.be.an('array');
|
||||||
res.data.roleStatus.forEach(roleSt => {
|
res.data.roleStatus.forEach(roleSt => {
|
||||||
expect(roleSt).to.have.all.keys('roleId', 'roleName', 'isCap', 'isFrd', 'headHid', 'sHid', 'topFiveCe', 'lv', 'isRobot', 'heroes', 'killed', 'totalDmg');
|
expect(roleSt).to.have.all.keys('roleId', 'roleName', 'isCap', 'isFrd', 'headHid', 'sHid', 'topFiveCe', 'lv', 'isRobot', 'heroes', 'killed', 'totalDmg', 'frdRatio');
|
||||||
});
|
});
|
||||||
pinusClient.request('battle.comBattleHandler.dismiss', {teamCode: res.data.teamCode}, (dismissRes) => {
|
pinusClient.request('battle.comBattleHandler.dismiss', {teamCode: res.data.teamCode}, (dismissRes) => {
|
||||||
expect(dismissRes).to.be.an('object');
|
expect(dismissRes).to.be.an('object');
|
||||||
|
|||||||
Reference in New Issue
Block a user