提交 5979d4b1 编写于 作者: F fangJinliang1

fix xts

Signed-off-by: NfangJinliang1 <fangjinliang1@huawei.com>
Change-Id: Ic6a9d101bc773004310ed592ca7fb7c0720b71db
上级 fd0f3ac3
......@@ -477,7 +477,6 @@ describe('SUB_NOTIFICATION_ANS_SECONDARY_DIRECTORY_TEST', function () {
*/
it('SUB_NOTIFICATION_ANS_SECONDARY_DIRECTORY_TEST_0900', 0, async function (done) {
console.info(`${TAG} SUB_NOTIFICATION_ANS_SECONDARY_DIRECTORY_TEST_0900 START`);
try{
await notificationManager.addSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION, (err) => {
console.info(`${TAG} addSlot success`)
......@@ -488,7 +487,14 @@ describe('SUB_NOTIFICATION_ANS_SECONDARY_DIRECTORY_TEST', function () {
} else {
notificationManager.getSlots().then((NotificationSlot) => {
console.info(`${TAG} getSlots success:` + JSON.stringify(NotificationSlot))
expect(NotificationSlot[0].type).assertEqual(notificationManager.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 == notificationManager.SlotType.SOCIAL_COMMUNICATION) {
done()
return
}
}
expect(false).assertTrue()
done()
}).catch((err) => {
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.
先完成此消息的编辑!
想要评论请 注册