提交 01fe955d 编写于 作者: C cclicn 提交者: lichenchen

fixed 516d6fc7 from https://gitee.com/cclicn/xts_acts/pulls/8749

【帐号子系统】xts配合js接口可选参数传入规范整改
Signed-off-by: Ncclicn <lichenchen22@huawei.com>
上级 a329e3f5
...@@ -127,22 +127,18 @@ export default function AccountTest() { ...@@ -127,22 +127,18 @@ export default function AccountTest() {
accountAbility.queryOsAccountDistributedInfo(function (err, data) { accountAbility.queryOsAccountDistributedInfo(function (err, data) {
console.debug('====>account_updateOsAccountDistributedInfo_test001 data:' + JSON.stringify(data)) console.debug('====>account_updateOsAccountDistributedInfo_test001 data:' + JSON.stringify(data))
expect(data.name).assertEqual('ZhangSan') expect(data.name).assertEqual('ZhangSan')
expect(data.id).assertEqual('12345') expect(data.id).assertEqual('5994471ABB01112AFCC18159F6CC74B4F511B99806DA59B3CAF5A9C173CACFC5')
let obj = { let obj = {
id: '12345', id: '12345',
name: 'ZhangSan', name: 'ZhangSan',
event: 'Ohos.account.event.LOGOUT' event: 'Ohos.account.event.LOGOUT'
}; };
accountAbility.updateOsAccountDistributedInfo(obj).then(function (err) { 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() { ...@@ -410,11 +410,11 @@ export default function ActsOsAccountThirdPartyTest_third_3() {
var localIdUndefined = undefined; var localIdUndefined = undefined;
try{ try{
AccountManager.checkOsAccountVerified(localIdUndefined, ()=>{ AccountManager.checkOsAccountVerified(localIdUndefined, ()=>{
expect().assertFail(); console.debug("====>ActsOsAccountCheckVerified_0800 end====");
done(); done();
}) })
}catch(err){ }catch(err){
expect(err.code).assertEqual(ERR_PARAMETER_CHECK_FAILED); expect().assertFail();
console.debug("====>ActsOsAccountCheckVerified_0700 end===="); console.debug("====>ActsOsAccountCheckVerified_0700 end====");
done(); done();
} }
...@@ -432,11 +432,11 @@ export default function ActsOsAccountThirdPartyTest_third_3() { ...@@ -432,11 +432,11 @@ export default function ActsOsAccountThirdPartyTest_third_3() {
var localIdUndefined = undefined; var localIdUndefined = undefined;
try{ try{
AccountManager.checkOsAccountVerified(localIdUndefined).then(()=>{ AccountManager.checkOsAccountVerified(localIdUndefined).then(()=>{
expect().assertFail(); console.debug("====>ActsOsAccountCheckVerified_0800 end====");
done(); done();
}) })
}catch(err){ }catch(err){
expect(err.code).assertEqual(ERR_PARAMETER_CHECK_FAILED) expect().assertFail();
console.debug("====>ActsOsAccountCheckVerified_0800 end===="); console.debug("====>ActsOsAccountCheckVerified_0800 end====");
done(); done();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册