From 934b58ffe862a7ad8ef3631d9b56eb79612bd0ed Mon Sep 17 00:00:00 2001 From: gaoxi Date: Thu, 25 Aug 2022 19:45:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E7=94=B5=E8=AF=9D=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E6=8E=A5=E5=8F=A3=E8=A6=86=E7=9B=96=E7=8E=87=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gaoxi --- .../src/main/js/test/SimManager.test.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/telephony/telephonyjstest/sim/sim_manager_function_test/src/main/js/test/SimManager.test.js b/telephony/telephonyjstest/sim/sim_manager_function_test/src/main/js/test/SimManager.test.js index 77e8a0fe6..6d8a34bf3 100644 --- a/telephony/telephonyjstest/sim/sim_manager_function_test/src/main/js/test/SimManager.test.js +++ b/telephony/telephonyjstest/sim/sim_manager_function_test/src/main/js/test/SimManager.test.js @@ -52,6 +52,24 @@ describe('SimManagerTest', function () { } }); + it('Telephony_Sim_getDefaultVoiceSlotId_0100', 0, async function (done) { + sim.getDefaultVoiceSlotId((err, data) => { + expect(data === null).assertFalse(); + done(); + }); + }); + + it('Telephony_Sim_getDefaultVoiceSlotId_0200', 0, async function (done) { + let promise = sim.getDefaultVoiceSlotId(); + promise.then(data => { + expect(data === null).assertFalse(); + done(); + }).catch(err => { + expect(err === null).assertFalse(); + done(); + }); + }); + /** * @tc.number Telephony_Sim_constantValidate_0100 * @tc.name SIM card constant validation -- GitLab