提交 934b58ff 编写于 作者: G gaoxi

补充电话服务接口覆盖率用例

Signed-off-by: Ngaoxi <gaoxi785@huawei.com>
上级 dd330f30
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册