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

!8871 规格变更修改格式化电话号码空参用例

Merge pull request !8871 from zhangfuzhi/cherry-pick-1685616229
......@@ -256,14 +256,14 @@ export default function ActsBaseCallManagerTest() {
it('Telephony_CallManager_formatPhoneNumber_Async_0700', 0, async function (done) {
call.formatPhoneNumber('2000000000', {
countryCode: ''
}, (err) => {
}, (err,data) => {
if (err) {
console.log(`Telephony_CallManager_formatPhoneNumber_Async_0700 finish err = ${err.message}`);
done();
return;
}
expect().assertFail();
console.log('Telephony_CallManager_formatPhoneNumber_Async_0700 fail');
console.log('Telephony_CallManager_formatPhoneNumber_Async_0700 success');
expect(data === '20 0000 0000').assertTrue();
done();
});
});
......@@ -402,8 +402,8 @@ export default function ActsBaseCallManagerTest() {
var data = await call.formatPhoneNumber('20000000', {
countryCode: ''
});
expect().assertFail();
console.log('Telephony_CallManager_formatPhoneNumber_Promise_0700 fail');
console.log('Telephony_CallManager_formatPhoneNumber_Promise_0700 success');
expect(data === '2000 0000').assertTrue();
done();
return;
} catch (err) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册