提交 197e7083 编写于 作者: Z zhangfuzhi

fixed 2dad3007 from https://gitee.com/zhangfuzhi1/xts_acts/pulls/8870

规格变更修改格式化电话号码空参用例
Signed-off-by: Nzhangfuzhi <zhangfuzhi1@huawei.com>
上级 4ec98be2
...@@ -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.
先完成此消息的编辑!
想要评论请 注册