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

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

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