修改两个战斗测试用例报错
This commit is contained in:
@@ -480,7 +480,7 @@ describe('战斗测试', function () {
|
|||||||
pinusClient.request('battle.towerBattleHandler.resetLv', { towerLv }, (res) => {
|
pinusClient.request('battle.towerBattleHandler.resetLv', { towerLv }, (res) => {
|
||||||
checkSuccessResponse(res);
|
checkSuccessResponse(res);
|
||||||
expect(res.data.roleId).to.be.a('string');
|
expect(res.data.roleId).to.be.a('string');
|
||||||
expect(res.data.lv).to.be.a('number');
|
expect(res.data.curLv).to.be.a('number');
|
||||||
expect(res.data.heroes).to.be.an('array');
|
expect(res.data.heroes).to.be.an('array');
|
||||||
res.data.heroes.forEach(hero => {
|
res.data.heroes.forEach(hero => {
|
||||||
expect(hero).to.be.a('number');
|
expect(hero).to.be.a('number');
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ describe('寻宝创建队伍', function() {
|
|||||||
let roleInfoT;
|
let roleInfoT;
|
||||||
|
|
||||||
const createTeamParms = {blueprtId: 33001, pub: true, ceLimit: 0};
|
const createTeamParms = {blueprtId: 33001, pub: true, ceLimit: 0};
|
||||||
const searchTeamParms = {lv: [1], magicWord: DEBUG_MAGIC_WORD};
|
const searchTeamParms = {lv: [0], magicWord: DEBUG_MAGIC_WORD};
|
||||||
|
|
||||||
beforeEach(function(done) {
|
beforeEach(function(done) {
|
||||||
const c = new Client();
|
const c = new Client();
|
||||||
|
|||||||
Reference in New Issue
Block a user