未验证 提交 055cf305 编写于 作者: O openharmony_ci 提交者: Gitee

!8749 【帐号子系统】xts配合js接口可选参数传入规范整改

Merge pull request !8749 from lichenchen/master
......@@ -127,22 +127,18 @@ export default function AccountTest() {
accountAbility.queryOsAccountDistributedInfo(function (err, data) {
console.debug('====>account_updateOsAccountDistributedInfo_test001 data:' + JSON.stringify(data))
expect(data.name).assertEqual('ZhangSan')
expect(data.id).assertEqual('12345')
expect(data.id).assertEqual('5994471ABB01112AFCC18159F6CC74B4F511B99806DA59B3CAF5A9C173CACFC5')
let obj = {
id: '12345',
name: 'ZhangSan',
event: 'Ohos.account.event.LOGOUT'
};
accountAbility.updateOsAccountDistributedInfo(obj).then(function (err) {
expect(err).assertEqual(undefined)
expect(err).assertEqual(undefined);
done();
});
});
});
accountAbility.queryOsAccountDistributedInfo(function (data) {
expect(data).assertEqual(undefined)
done();
})
})
/**
......
......@@ -410,11 +410,11 @@ export default function ActsOsAccountThirdPartyTest_third_3() {
var localIdUndefined = undefined;
try{
AccountManager.checkOsAccountVerified(localIdUndefined, ()=>{
expect().assertFail();
console.debug("====>ActsOsAccountCheckVerified_0800 end====");
done();
})
}catch(err){
expect(err.code).assertEqual(ERR_PARAMETER_CHECK_FAILED);
expect().assertFail();
console.debug("====>ActsOsAccountCheckVerified_0700 end====");
done();
}
......@@ -432,11 +432,11 @@ export default function ActsOsAccountThirdPartyTest_third_3() {
var localIdUndefined = undefined;
try{
AccountManager.checkOsAccountVerified(localIdUndefined).then(()=>{
expect().assertFail();
console.debug("====>ActsOsAccountCheckVerified_0800 end====");
done();
})
}catch(err){
expect(err.code).assertEqual(ERR_PARAMETER_CHECK_FAILED)
expect().assertFail();
console.debug("====>ActsOsAccountCheckVerified_0800 end====");
done();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册