From ca7e84e2949ebb69f0f2e2a2ecc34d682f4aae3b Mon Sep 17 00:00:00 2001 From: zhouyan Date: Mon, 9 May 2022 17:02:28 +0800 Subject: [PATCH] =?UTF-8?q?callback=E5=BC=82=E6=AD=A5=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E8=BF=94=E5=9B=9EAsyncCallback=E7=BB=93=E6=9E=84=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhouyan --- .../src/main/js/default/test/AccessToken.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/access_token/AccessTokenTest_Normal_js/src/main/js/default/test/AccessToken.test.js b/security/access_token/AccessTokenTest_Normal_js/src/main/js/default/test/AccessToken.test.js index 98157f814..61b039114 100755 --- a/security/access_token/AccessTokenTest_Normal_js/src/main/js/default/test/AccessToken.test.js +++ b/security/access_token/AccessTokenTest_Normal_js/src/main/js/default/test/AccessToken.test.js @@ -185,7 +185,7 @@ describe('AccessTokenTest', function () { console.log("Test_grantUserGrantedPermission_003 start"); var atManager = abilityAccessCtrl.createAtManager(); atManager.grantUserGrantedPermission(tokenID, permissionNameUser, PermissionFlag.PERMISSION_USER_SET, - function (result) { + function (err, result) { console.log("Test_grantUserGrantedPermission_003 tokenID" + tokenID + "-" + result) expect(result).assertEqual(RESULT_SUCCESS); @@ -292,7 +292,7 @@ describe('AccessTokenTest', function () { console.log("Test_revokeUserGrantedPermission_003 start"); var atManager = abilityAccessCtrl.createAtManager(); atManager.revokeUserGrantedPermission(tokenID, permissionNameUser, PermissionFlag.PERMISSION_USER_SET, - function (result) { + function (err, result) { console.log("Test_revokeUserGrantedPermission_003 tokenID" + tokenID + "-" + result) expect(result).assertEqual(RESULT_SUCCESS); -- GitLab