From e68320eb61cf4c5535650ce9e8cdc82a5d6ab2fe Mon Sep 17 00:00:00 2001 From: fangJinliang1 Date: Fri, 20 Jan 2023 16:25:43 +0800 Subject: [PATCH] fixed fd0f3ac from https://gitee.com/fangJinliang1/xts_acts/pulls/7287 fix xts Signed-off-by: fangJinliang1 Change-Id: I601993ce58c13d730d0f9571ed8b2c6fc333f8c3 --- .../test/ActsNotificationManagerSlotTest.js | 110 +++++++++--------- .../main/js/test/ActsNotificationSlotTest.js | 110 +++++++++--------- 2 files changed, 110 insertions(+), 110 deletions(-) diff --git a/notification/ans_standard/actsNotificationManagerSlotTest/src/main/js/test/ActsNotificationManagerSlotTest.js b/notification/ans_standard/actsNotificationManagerSlotTest/src/main/js/test/ActsNotificationManagerSlotTest.js index 6665df8b5..52f555bb5 100644 --- a/notification/ans_standard/actsNotificationManagerSlotTest/src/main/js/test/ActsNotificationManagerSlotTest.js +++ b/notification/ans_standard/actsNotificationManagerSlotTest/src/main/js/test/ActsNotificationManagerSlotTest.js @@ -283,11 +283,11 @@ export default function ActsNotificationManagerSlotTest() { await notificationManager.getSlot(notificationManager.SlotType.UNKNOWN_TYPE, (err, NotificationSlot) => { if (err) { console.info(`${TAG} getSlot_1 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} getSlot_1 AsyncCallback success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -310,11 +310,11 @@ export default function ActsNotificationManagerSlotTest() { await notificationManager.getSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION, (err, NotificationSlot) => { if (err) { console.info(`${TAG} getSlot_2 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} getSlot_2 AsyncCallback success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -337,11 +337,11 @@ export default function ActsNotificationManagerSlotTest() { await notificationManager.getSlot(notificationManager.SlotType.SERVICE_INFORMATION, (err, NotificationSlot) => { if (err) { console.info(`${TAG} getSlot_3 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} getSlot_3 AsyncCallback success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -364,11 +364,11 @@ export default function ActsNotificationManagerSlotTest() { await notificationManager.getSlot(notificationManager.SlotType.CONTENT_INFORMATION, (err, NotificationSlot) => { if (err) { console.info(`${TAG} getSlot_4 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} getSlot_4 AsyncCallback success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -391,11 +391,11 @@ export default function ActsNotificationManagerSlotTest() { await notificationManager.getSlot(notificationManager.SlotType.OTHER_TYPES, (err, NotificationSlot) => { if (err) { console.info(`${TAG} getSlot_5 AsyncCallback errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} getSlot_5 AsyncCallback success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -416,11 +416,11 @@ export default function ActsNotificationManagerSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1600 START') await notificationManager.getSlot(notificationManager.SlotType.UNKNOWN_TYPE).then((NotificationSlot) => { console.info(`${TAG} getSlot_6 Promise success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} getSlot_6 Promise errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1600 END') @@ -435,11 +435,11 @@ export default function ActsNotificationManagerSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1700 START') await notificationManager.getSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION).then((NotificationSlot) => { console.info(`${TAG} getSlot_7 Promise success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} getSlot_7 Promise errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1700 END') @@ -454,11 +454,11 @@ export default function ActsNotificationManagerSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1800 START') await notificationManager.getSlot(notificationManager.SlotType.SERVICE_INFORMATION).then((NotificationSlot) => { console.info(`${TAG} getSlot_8 Promise success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} getSlot_8 Promise errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1800 END') @@ -473,11 +473,11 @@ export default function ActsNotificationManagerSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1900 START') await notificationManager.getSlot(notificationManager.SlotType.CONTENT_INFORMATION).then((NotificationSlot) => { console.info(`${TAG} getSlot_9 Promise success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} getSlot_9 Promise errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_1900 END') @@ -492,11 +492,11 @@ export default function ActsNotificationManagerSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2000 START') await notificationManager.getSlot(notificationManager.SlotType.OTHER_TYPES).then((NotificationSlot) => { console.info(`${TAG} getSlot_10 Promise success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} getSlot_10 Promise errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2000 END') @@ -513,11 +513,11 @@ export default function ActsNotificationManagerSlotTest() { await notificationManager.removeSlot(notificationManager.SlotType.UNKNOWN_TYPE, (err) => { if (err) { console.info(`${TAG} removeSlot_1 errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} removeSlot_1 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -540,11 +540,11 @@ export default function ActsNotificationManagerSlotTest() { await notificationManager.removeSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION, (err) => { if (err) { console.info(`${TAG} removeSlot_2 errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} removeSlot_2 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -567,11 +567,11 @@ export default function ActsNotificationManagerSlotTest() { await notificationManager.removeSlot(notificationManager.SlotType.SERVICE_INFORMATION, (err) => { if (err) { console.info(`${TAG} removeSlot_3 errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} removeSlot_3 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -594,11 +594,11 @@ export default function ActsNotificationManagerSlotTest() { await notificationManager.removeSlot(notificationManager.SlotType.CONTENT_INFORMATION, (err) => { if (err) { console.info(`${TAG} removeSlot_4 errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} removeSlot_4 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -621,11 +621,11 @@ export default function ActsNotificationManagerSlotTest() { await notificationManager.removeSlot(notificationManager.SlotType.OTHER_TYPES, (err) => { if (err) { console.info(`${TAG} removeSlot_5 errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} removeSlot_5 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -646,11 +646,11 @@ export default function ActsNotificationManagerSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2600 START') await notificationManager.removeSlot(notificationManager.SlotType.UNKNOWN_TYPE).then(() => { console.info(`${TAG} removeSlot_6 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} removeSlot_6 errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2600 END') @@ -665,11 +665,11 @@ export default function ActsNotificationManagerSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2700 START') await notificationManager.removeSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION).then(() => { console.info(`${TAG} removeSlot_7 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} removeSlot_7 errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2700 END') @@ -684,11 +684,11 @@ export default function ActsNotificationManagerSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2800 START') await notificationManager.removeSlot(notificationManager.SlotType.SERVICE_INFORMATION).then(() => { console.info(`${TAG} removeSlot_8 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} removeSlot_8 errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2800 END') @@ -703,11 +703,11 @@ export default function ActsNotificationManagerSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2900 START') await notificationManager.removeSlot(notificationManager.SlotType.CONTENT_INFORMATION).then(() => { console.info(`${TAG} removeSlot_9 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} removeSlot_9 errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_2900 END') @@ -722,11 +722,11 @@ export default function ActsNotificationManagerSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_3000 START') await notificationManager.removeSlot(notificationManager.SlotType.OTHER_TYPES).then(() => { console.info(`${TAG} removeSlot_10 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} removeSlot_10 errCode: ${err.code}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_MANAGER_SLOT_TEST_3000 END') @@ -757,7 +757,7 @@ export default function ActsNotificationManagerSlotTest() { expect(false).assertTrue() done() } else { - console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot}`) expect(true).assertTrue() notificationManager.removeSlot(notificationManager.SlotType.UNKNOWN_TYPE, (err) => { if (err) { @@ -808,7 +808,7 @@ export default function ActsNotificationManagerSlotTest() { expect(false).assertTrue() done() } else { - console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot}`) expect(true).assertTrue() notificationManager.removeSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION, (err) => { if (err) { @@ -860,7 +860,7 @@ export default function ActsNotificationManagerSlotTest() { expect(false).assertTrue() done() } else { - console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot}`) expect(true).assertTrue() notificationManager.removeSlot(notificationManager.SlotType.SERVICE_INFORMATION, (err) => { if (err) { @@ -910,7 +910,7 @@ export default function ActsNotificationManagerSlotTest() { expect(false).assertTrue() done() } else { - console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot}`) expect(true).assertTrue() notificationManager.removeSlot(notificationManager.SlotType.CONTENT_INFORMATION, (err) => { if (err) { @@ -960,7 +960,7 @@ export default function ActsNotificationManagerSlotTest() { expect(false).assertTrue() done() } else { - console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot}`) expect(true).assertTrue() notificationManager.removeSlot(notificationManager.SlotType.OTHER_TYPES, (err) => { if (err) { @@ -1004,7 +1004,7 @@ export default function ActsNotificationManagerSlotTest() { }) await notificationManager.getSlot(notificationManager.SlotType.UNKNOWN_TYPE).then((NotificationSlot) => { - console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot}`) expect(true).assertTrue() done() }).catch((err) => { @@ -1044,7 +1044,7 @@ export default function ActsNotificationManagerSlotTest() { }) await notificationManager.getSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION).then((NotificationSlot) => { - console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot}`) expect(true).assertTrue() done() }).catch((err) => { @@ -1084,7 +1084,7 @@ export default function ActsNotificationManagerSlotTest() { }) await notificationManager.getSlot(notificationManager.SlotType.SERVICE_INFORMATION).then((NotificationSlot) => { - console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot}`) expect(true).assertTrue() done() }).catch((err) => { @@ -1124,7 +1124,7 @@ export default function ActsNotificationManagerSlotTest() { }) await notificationManager.getSlot(notificationManager.SlotType.CONTENT_INFORMATION).then((NotificationSlot) => { - console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot}`) expect(true).assertTrue() done() }).catch((err) => { @@ -1164,7 +1164,7 @@ export default function ActsNotificationManagerSlotTest() { }) await notificationManager.getSlot(notificationManager.SlotType.OTHER_TYPES).then((NotificationSlot) => { - console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot}`) expect(true).assertTrue() done() }).catch((err) => { @@ -1206,11 +1206,11 @@ export default function ActsNotificationManagerSlotTest() { await notificationManager.getSlot(notificationManager.SlotType.CONTENT_INFORMATION, (err, NotificationSlot) => { if (err) { console.info(`${TAG} getSlot_21 err: ${err}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { - console.info(`${TAG} getSlot_21 success: ${NotificationSlot.type}`) - expect(false).assertTrue() + console.info(`${TAG} getSlot_21 success: ${NotificationSlot}`) + expect(true).assertTrue() done() } }) @@ -1243,11 +1243,11 @@ export default function ActsNotificationManagerSlotTest() { await notificationManager.removeSlot(notificationManager.SlotType.SERVICE_INFORMATION, (err) => { if (err) { console.info(`${TAG} removeSlot err: ${err}, errMes: ${err.message}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} removeSlot success`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) diff --git a/notification/ans_standard/actsNotificationSlotTest/src/main/js/test/ActsNotificationSlotTest.js b/notification/ans_standard/actsNotificationSlotTest/src/main/js/test/ActsNotificationSlotTest.js index 3fbed13d2..a472e47ba 100644 --- a/notification/ans_standard/actsNotificationSlotTest/src/main/js/test/ActsNotificationSlotTest.js +++ b/notification/ans_standard/actsNotificationSlotTest/src/main/js/test/ActsNotificationSlotTest.js @@ -246,11 +246,11 @@ export default function ActsNotificationSlotTest() { await notification.getSlot(notification.SlotType.UNKNOWN_TYPE, (err, NotificationSlot) => { if (err.code) { console.info(`${TAG} getSlot_1 AsyncCallback err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} getSlot_1 AsyncCallback success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -267,11 +267,11 @@ export default function ActsNotificationSlotTest() { await notification.getSlot(notification.SlotType.SOCIAL_COMMUNICATION, (err, NotificationSlot) => { if (err.code) { console.info(`${TAG} getSlot_2 AsyncCallback err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} getSlot_2 AsyncCallback success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -288,11 +288,11 @@ export default function ActsNotificationSlotTest() { await notification.getSlot(notification.SlotType.SERVICE_INFORMATION, (err, NotificationSlot) => { if (err.code) { console.info(`${TAG} getSlot_3 AsyncCallback err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} getSlot_3 AsyncCallback success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -309,11 +309,11 @@ export default function ActsNotificationSlotTest() { await notification.getSlot(notification.SlotType.CONTENT_INFORMATION, (err, NotificationSlot) => { if (err.code) { console.info(`${TAG} getSlot_4 AsyncCallback err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} getSlot_4 AsyncCallback success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -330,11 +330,11 @@ export default function ActsNotificationSlotTest() { await notification.getSlot(notification.SlotType.OTHER_TYPES, (err, NotificationSlot) => { if (err.code) { console.info(`${TAG} getSlot_5 AsyncCallback err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} getSlot_5 AsyncCallback success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -350,11 +350,11 @@ export default function ActsNotificationSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1600 START') await notification.getSlot(notification.SlotType.UNKNOWN_TYPE).then((NotificationSlot) => { console.info(`${TAG} getSlot_6 Promise success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} getSlot_6 Promise err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1600 END') @@ -369,11 +369,11 @@ export default function ActsNotificationSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1700 START') await notification.getSlot(notification.SlotType.SOCIAL_COMMUNICATION).then((NotificationSlot) => { console.info(`${TAG} getSlot_7 Promise success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} getSlot_7 Promise err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1700 END') @@ -388,11 +388,11 @@ export default function ActsNotificationSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1800 START') await notification.getSlot(notification.SlotType.SERVICE_INFORMATION).then((NotificationSlot) => { console.info(`${TAG} getSlot_8 Promise success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} getSlot_8 Promise err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1800 END') @@ -407,11 +407,11 @@ export default function ActsNotificationSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1900 START') await notification.getSlot(notification.SlotType.CONTENT_INFORMATION).then((NotificationSlot) => { console.info(`${TAG} getSlot_9 Promise success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} getSlot_9 Promise err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_1900 END') @@ -426,11 +426,11 @@ export default function ActsNotificationSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2000 START') await notification.getSlot(notification.SlotType.OTHER_TYPES).then((NotificationSlot) => { console.info(`${TAG} getSlot_10 Promise success: ${NotificationSlot}`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} getSlot_10 Promise err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2000 END') @@ -446,11 +446,11 @@ export default function ActsNotificationSlotTest() { await notification.removeSlot(notification.SlotType.UNKNOWN_TYPE, (err) => { if (err.code) { console.info(`${TAG} removeSlot_1 err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} removeSlot_1 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -467,11 +467,11 @@ export default function ActsNotificationSlotTest() { await notification.removeSlot(notification.SlotType.SOCIAL_COMMUNICATION, (err) => { if (err.code) { console.info(`${TAG} removeSlot_2 err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} removeSlot_2 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -488,11 +488,11 @@ export default function ActsNotificationSlotTest() { await notification.removeSlot(notification.SlotType.SERVICE_INFORMATION, (err) => { if (err.code) { console.info(`${TAG} removeSlot_3 err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} removeSlot_3 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -509,11 +509,11 @@ export default function ActsNotificationSlotTest() { await notification.removeSlot(notification.SlotType.CONTENT_INFORMATION, (err) => { if (err.code) { console.info(`${TAG} removeSlot_4 err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} removeSlot_4 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -530,11 +530,11 @@ export default function ActsNotificationSlotTest() { await notification.removeSlot(notification.SlotType.OTHER_TYPES, (err) => { if (err.code) { console.info(`${TAG} removeSlot_5 err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} removeSlot_5 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) @@ -550,11 +550,11 @@ export default function ActsNotificationSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2600 START') await notification.removeSlot(notification.SlotType.UNKNOWN_TYPE).then(() => { console.info(`${TAG} removeSlot_6 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} removeSlot_6 err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2600 END') @@ -569,11 +569,11 @@ export default function ActsNotificationSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2700 START') await notification.removeSlot(notification.SlotType.SOCIAL_COMMUNICATION).then(() => { console.info(`${TAG} removeSlot_7 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} removeSlot_7 err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2700 END') @@ -588,11 +588,11 @@ export default function ActsNotificationSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2800 START') await notification.removeSlot(notification.SlotType.SERVICE_INFORMATION).then(() => { console.info(`${TAG} removeSlot_8 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} removeSlot_8 err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2800 END') @@ -607,11 +607,11 @@ export default function ActsNotificationSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2900 START') await notification.removeSlot(notification.SlotType.CONTENT_INFORMATION).then(() => { console.info(`${TAG} removeSlot_9 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} removeSlot_9 err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_2900 END') @@ -626,11 +626,11 @@ export default function ActsNotificationSlotTest() { console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_3000 START') await notification.removeSlot(notification.SlotType.OTHER_TYPES).then(() => { console.info(`${TAG} removeSlot_10 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() }).catch((err) => { console.info(`${TAG} removeSlot_10 err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() }) console.info(TAG + 'SUB_NOTIFICATION_ANS_SLOT_TEST_3000 END') @@ -660,7 +660,7 @@ export default function ActsNotificationSlotTest() { expect(false).assertTrue() done() } else { - console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot}`) expect(true).assertTrue() notification.removeSlot(notification.SlotType.UNKNOWN_TYPE, (err) => { if (err.code) { @@ -704,7 +704,7 @@ export default function ActsNotificationSlotTest() { expect(false).assertTrue() done() } else { - console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot}`) expect(true).assertTrue() notification.removeSlot(notification.SlotType.SOCIAL_COMMUNICATION, (err) => { if (err.code) { @@ -748,7 +748,7 @@ export default function ActsNotificationSlotTest() { expect(false).assertTrue() done() } else { - console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot}`) expect(true).assertTrue() notification.removeSlot(notification.SlotType.SERVICE_INFORMATION, (err) => { if (err.code) { @@ -792,7 +792,7 @@ export default function ActsNotificationSlotTest() { expect(false).assertTrue() done() } else { - console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot}`) expect(true).assertTrue() notification.removeSlot(notification.SlotType.CONTENT_INFORMATION, (err) => { if (err.code) { @@ -837,7 +837,7 @@ export default function ActsNotificationSlotTest() { expect(false).assertTrue() done() } else { - console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot}`) expect(true).assertTrue() notification.removeSlot(notification.SlotType.OTHER_TYPES, (err) => { if (err.code) { @@ -877,7 +877,7 @@ export default function ActsNotificationSlotTest() { }) await notification.getSlot(notification.SlotType.UNKNOWN_TYPE).then((NotificationSlot) => { - console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot UNKNOWN_TYPE success: ${NotificationSlot}`) expect(true).assertTrue() done() }).catch((err) => { @@ -917,7 +917,7 @@ export default function ActsNotificationSlotTest() { }) await notification.getSlot(notification.SlotType.SOCIAL_COMMUNICATION).then((NotificationSlot) => { - console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot SOCIAL_COMMUNICATION success: ${NotificationSlot}`) expect(true).assertTrue() done() }).catch((err) => { @@ -957,7 +957,7 @@ export default function ActsNotificationSlotTest() { }) await notification.getSlot(notification.SlotType.SERVICE_INFORMATION).then((NotificationSlot) => { - console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot SERVICE_INFORMATION success: ${NotificationSlot}`) expect(true).assertTrue() done() }).catch((err) => { @@ -997,7 +997,7 @@ export default function ActsNotificationSlotTest() { }) await notification.getSlot(notification.SlotType.CONTENT_INFORMATION).then((NotificationSlot) => { - console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot CONTENT_INFORMATION success: ${NotificationSlot}`) expect(true).assertTrue() done() }).catch((err) => { @@ -1037,7 +1037,7 @@ export default function ActsNotificationSlotTest() { }) await notification.getSlot(notification.SlotType.OTHER_TYPES).then((NotificationSlot) => { - console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot.type}`) + console.info(`${TAG} getSlot OTHER_TYPES success: ${NotificationSlot}`) expect(true).assertTrue() done() }).catch((err) => { @@ -1078,11 +1078,11 @@ export default function ActsNotificationSlotTest() { await notification.getSlot(notification.SlotType.CONTENT_INFORMATION, (err, NotificationSlot) => { if (err.code) { console.info(`${TAG} getSlot_21 err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { - console.info(`${TAG} getSlot_21 success: ${NotificationSlot.type}`) - expect(false).assertTrue() + console.info(`${TAG} getSlot_21 success: ${NotificationSlot}`) + expect(true).assertTrue() done() } }) @@ -1109,11 +1109,11 @@ export default function ActsNotificationSlotTest() { await notification.removeSlot(notification.SlotType.SERVICE_INFORMATION, (err) => { if (err.code) { console.info(`${TAG} getSlot_22 err: ${err.code}`) - expect(true).assertTrue() + expect(false).assertTrue() done() } else { console.info(`${TAG} getSlot_22 success`) - expect(false).assertTrue() + expect(true).assertTrue() done() } }) -- GitLab