测试:寻宝正常匹配的完整测试
FIXME:protobuf 中的 onItemUpdate 和测试有冲突
This commit is contained in:
@@ -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');
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user