测试:添加战斗测试

This commit is contained in:
luying
2021-11-03 20:04:06 +08:00
parent 88e7ee906d
commit fb59fcd0ca
13 changed files with 364 additions and 22 deletions

View File

@@ -19,6 +19,16 @@ export function checkDisplayItems(items) {
})
}
export function checkBattleGoods(items) {
expect(items).to.be.an('array');
items.forEach(item => {
expect(item.dropType).to.be.a('number');
if(item.seqId) expect(item.seqId).to.be.a('number');
expect(item.id).to.be.a('number');
expect(item.count).to.be.a('number');
})
}
export function checkHero(heroes) {
expect(heroes).to.be.an('array');
heroes.forEach(hero => {