测试:添加战斗测试
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user