未验证 提交 928a825f 编写于 作者: L liushuling 提交者: Gitee

update security/access_token/AccessTokenTest_Normal_js/src/main/js/test/AccessToken.test.js.

Signed-off-by: Nliushuling <liushuling1@huawei.com>
上级 23235c86
...@@ -247,9 +247,13 @@ describe('AccessTokenTest', function () { ...@@ -247,9 +247,13 @@ describe('AccessTokenTest', function () {
it('Test_checkAccessToken_002', 0, async function(done){ it('Test_checkAccessToken_002', 0, async function(done){
console.info("Test_checkAccessToken_002 start"); console.info("Test_checkAccessToken_002 start");
var atManager = abilityAccessCtrl.createAtManager(); var atManager = abilityAccessCtrl.createAtManager();
var result = await atManager.checkAccessToken(tokenID, permissionNameSystem); try {
console.info("Test_checkAccessToken_002 tokenID" + tokenID + "-" + result) var result = await atManager.checkAccessToken(tokenID, permissionNameSystem);
expect(result).assertEqual(GrantStatus.PERMISSION_GRANTED); console.info("Test_checkAccessToken_002 tokenID" + tokenID + "-" + result)
expect(result).assertEqual(GrantStatus.PERMISSION_GRANTED);
} catch(error) {
console.info("Test_checkAccessToken_002 error code" + error.code + "error message" + error.message);
}
done(); done();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册