提交 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() {
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.
先完成此消息的编辑!
想要评论请 注册