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 77e8a0fe68fe6a2e5a6e5e502031ffd88e5d7bf1..6d8a34bf3ffa9654cca910fe4447e79d87da6815 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