提交 759ab094 编写于 作者: F fangJinliang1

fix xts

Signed-off-by: NfangJinliang1 <fangjinliang1@huawei.com>
Change-Id: I966ae1cb38efa05c27ed2ed474bd3b178098e827
Signed-off-by: NfangJinliang1 <fangjinliang1@huawei.com>
上级 59852bb8
...@@ -468,7 +468,14 @@ describe('secondaryDirectoryTest', function () { ...@@ -468,7 +468,14 @@ describe('secondaryDirectoryTest', function () {
} else { } else {
notify.getSlots().then((NotificationSlot) => { notify.getSlots().then((NotificationSlot) => {
console.info(`${TAG} getSlots success:` + JSON.stringify(NotificationSlot)) console.info(`${TAG} getSlots success:` + JSON.stringify(NotificationSlot))
expect(NotificationSlot[0].type).assertEqual(notify.SlotType.SOCIAL_COMMUNICATION) for (let i = 0; i < NotificationSlot.length; ++i) {
console.info(`${TAG} NotificationSlot[${i}].type:` + JSON.stringify(NotificationSlot[i].type))
if (NotificationSlot[i].type == notify.SlotType.SOCIAL_COMMUNICATION) {
done()
return
}
}
expect(false).assertTrue()
done() done()
}).catch((err) => { }).catch((err) => {
console.info(`${TAG} getSlots failed err: + ${err.code}`) console.info(`${TAG} getSlots failed err: + ${err.code}`)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册