From 3941b14c7dad7c4986b4083f559d04e47f48e338 Mon Sep 17 00:00:00 2001 From: zwx1133214 Date: Thu, 31 Mar 2022 11:33:53 +0800 Subject: [PATCH] ans-remove Signed-off-by: zwx1133214 --- .../src/main/js/test/ActsAnsNotificationRemove.test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/notification/ans_standard/actsansnotificationremove/entry/src/main/js/test/ActsAnsNotificationRemove.test.js b/notification/ans_standard/actsansnotificationremove/entry/src/main/js/test/ActsAnsNotificationRemove.test.js index 787b63b7b..ad41a1cf2 100644 --- a/notification/ans_standard/actsansnotificationremove/entry/src/main/js/test/ActsAnsNotificationRemove.test.js +++ b/notification/ans_standard/actsansnotificationremove/entry/src/main/js/test/ActsAnsNotificationRemove.test.js @@ -891,7 +891,7 @@ describe('ActsAnsNotificationRemove', function () { console.info("=======ANS_Remove_1200 onConsume remove_2times1:=======>"); }).catch((err)=>{ console.info("=======ANS_Remove_1200 onConsume remove_2times1 err:========>" + JSON.stringify(err)); - expect(err.code = 0).assertEqual(true); + expect(err.code == 0).assertEqual(true); }); notify.remove(data.request.hashCode).then((data)=>{ console.info("=======ANS_Remove_1200 onConsume remove_2times2 data:=======>" + JSON.stringify(data)); @@ -1834,7 +1834,7 @@ describe('ActsAnsNotificationRemove', function () { console.info("================ANS_Remove_2300 removeAllCallBack data:=========>" + JSON.stringify(data)); console.info("================ANS_Remove_2300 removeAllCallBack end:==========>") } - var timesOfOnConsumeRemoveAll + let timesOfOnConsumeRemoveAll function onConsumeRemoveAll(data) { timesOfOnConsumeRemoveAll = timesOfOnConsumeRemoveAll + 1 console.info("================ANS_Remove_2300 onConsume start==================>"); @@ -1846,7 +1846,7 @@ describe('ActsAnsNotificationRemove', function () { } console.info("================ANS_Remove_2300 onConsume end====================>"); } - + let timesOfOnCancelRemoveAll function onCancelRemoveAll(data) { timesOfOnCancelRemoveAll = timesOfOnCancelRemoveAll + 1 console.info("==================ANS_Remove_2300 onCancel start===========>"); @@ -1951,7 +1951,6 @@ describe('ActsAnsNotificationRemove', function () { }),timeout); }) - var timesOfOnConsumeRemoveAll function onConsumeRemoveAllPromise(data) { timesOfOnConsumeRemoveAll = timesOfOnConsumeRemoveAll + 1 console.info("===========ANS_Remove_2400 onConsume start==============>"); -- GitLab