From 3854abc7769fb174e77424137a98da2316a72e86 Mon Sep 17 00:00:00 2001 From: zhijianwen Date: Fri, 18 Mar 2022 19:29:21 +0800 Subject: [PATCH] fixed 791b00b from https://gitee.com/zhi-jianwen/xts_acts/pulls/2643 getactive Signed-off-by: zhijianwen --- .../actsansgetactive/entry/src/main/js/test/getActive.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notification/ans_standard/publish_test/getactive/actsansgetactive/entry/src/main/js/test/getActive.js b/notification/ans_standard/publish_test/getactive/actsansgetactive/entry/src/main/js/test/getActive.js index e334a94db..49cca58a0 100644 --- a/notification/ans_standard/publish_test/getactive/actsansgetactive/entry/src/main/js/test/getActive.js +++ b/notification/ans_standard/publish_test/getactive/actsansgetactive/entry/src/main/js/test/getActive.js @@ -1003,7 +1003,7 @@ describe('ActsAnsActiveTest', function () { function getAllCallbackNine(err,data){ console.debug("===========Ans_GetAllActive_0900 getAllCallbackNine data.length============>"+data.length); console.debug("===========Ans_GetAllActive_0900 getAllCallbackNine err.code============>"+err.code); - expect(err.code != 0).assertEqual(true); + expect(err.code).assertEqual(0); } /* @@ -1062,8 +1062,8 @@ describe('ActsAnsActiveTest', function () { console.debug("===============Ans_GetAllActive_1000 publish CurrentApp notify end==================>"); await notify.getAllActiveNotifications().then(()=>{ console.debug("=======Ans_GetAllActive_1000 then========>"); + expect(err.code).assertEqual(0); }).catch((err)=>{ - expect(err.code != 0).assertEqual(true); console.debug("=======Ans_GetAllActive_1000 err==========>"+err.code); }); setTimeout(function(){ -- GitLab