From 197e708310fad6c8e468cbcd89752a52d6f7ef79 Mon Sep 17 00:00:00 2001 From: zhangfuzhi Date: Thu, 1 Jun 2023 18:01:56 +0800 Subject: [PATCH] =?UTF-8?q?fixed=202dad300=20from=20https://gitee.com/zhan?= =?UTF-8?q?gfuzhi1/xts=5Facts/pulls/8870=20=E8=A7=84=E6=A0=BC=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E4=BF=AE=E6=94=B9=E6=A0=BC=E5=BC=8F=E5=8C=96=E7=94=B5?= =?UTF-8?q?=E8=AF=9D=E5=8F=B7=E7=A0=81=E7=A9=BA=E5=8F=82=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangfuzhi --- .../src/main/js/test/CallManagerTest.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/telephony/telephonyjstest/telephony_base/call_manager/src/main/js/test/CallManagerTest.test.js b/telephony/telephonyjstest/telephony_base/call_manager/src/main/js/test/CallManagerTest.test.js index b5035051f..e64e28689 100644 --- a/telephony/telephonyjstest/telephony_base/call_manager/src/main/js/test/CallManagerTest.test.js +++ b/telephony/telephonyjstest/telephony_base/call_manager/src/main/js/test/CallManagerTest.test.js @@ -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) { -- GitLab