测试:寻宝正常匹配的完整测试

FIXME:protobuf 中的 onItemUpdate 和测试有冲突
This commit is contained in:
liangtongchuan
2021-02-10 19:19:10 +08:00
parent dc36468016
commit 3b4e906f37
3 changed files with 57 additions and 16 deletions

View File

@@ -6,4 +6,12 @@ export function checkSuccessResponse(response, withData = true) {
if (withData) {
expect(response.data).to.be.an('object');
}
}
export function checkDisplayItems(items) {
expect(items).to.be.an('array');
items.forEach(item => {
expect(item.id).to.be.a('number');
expect(item.count).to.be.a('number');
})
}