未验证 提交 1fc64e1b 编写于 作者: O openharmony_ci 提交者: Gitee

!4142 acts bms_queryAbilityByWant 用例修复

Merge pull request !4142 from Lotol/master
......@@ -656,11 +656,15 @@ export default function ActsBmsQueryAbilityByWant() {
}, bundle.BundleFlag.GET_BUNDLE_DEFAULT, userId).then(res => {
console.info(' success bms_queryAbilityByWant_2900 '+ JSON.stringify(res))
const list = ['TypeDoubleWildCard','TypeSingleWildCard','TypeString', 'TypeStringExt']
if(res && res.length) {
for(let i = 0; i < res.length; i++) {
expect(list.includes(res[i].description)).assertEqual(true)
let cnt = 0;
if (res && res.length) {
for (let i = 0; i < res.length; i++) {
if (list.includes(res[i].description)) {
cnt++;
}
}
}
expect(cnt).assertEqual(list.length)
done()
}).catch(err => {
console.error(' fail bms_queryAbilityByWant_2900' + JSON.stringify(err))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册