未验证 提交 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 () {
it('Test_checkAccessToken_002', 0, async function(done){
console.info("Test_checkAccessToken_002 start");
var atManager = abilityAccessCtrl.createAtManager();
var result = await atManager.checkAccessToken(tokenID, permissionNameSystem);
console.info("Test_checkAccessToken_002 tokenID" + tokenID + "-" + result)
expect(result).assertEqual(GrantStatus.PERMISSION_GRANTED);
try {
var result = await atManager.checkAccessToken(tokenID, permissionNameSystem);
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();
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册