提交 85bb722b 编写于 作者: L linxiangzhi

acts bms_queryAbilityByWant 用例修复

Signed-off-by: Nlinxiangzhi <linxiangzhi@huawei.com>
Change-Id: Iddf39dd991c636775b1b0c835e8f4d68434b7a0e
上级 b373a2be
......@@ -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.
先完成此消息的编辑!
想要评论请 注册