提交 8d449029 编写于 作者: 高曦

电话服务用例整改

Signed-off-by: N高曦 <gaoxi785@huawei.com>
上级 c1492ae3
......@@ -343,8 +343,8 @@ describe('SmsMmsErrorTest', function () {
return;
}
if (result.length > 0) {
except(result[0].shortMessage != null).assertTrue();
except(result[0].indexOnSim != -1).assertTrue();
expect(result[0].shortMessage != null).assertTrue();
expect(result[0].indexOnSim != -1).assertTrue();
}
expect(result === undefined || result.length === 0).assertTrue();
console.log('Telephony_SmsMms_getAllSIMMessages_Async_0200 finish');
......@@ -776,7 +776,7 @@ describe('SmsMmsErrorTest', function () {
};
try {
let encodePromise = await sms.encodeMms({messageType: sms.TYPE_MMS_READ_ORIG_IND, mmsType});
expect(encodePromise.length > 0).assertTrue();
expect(encodePromise.length == 0).assertTrue();
console.log('Telephony_SmsMms_encodeMms_Promise_0900 encodeMms finish');
let promise = await sms.decodeMms(encodePromise);
expect(promise.messageType === sms.TYPE_MMS_READ_ORIG_IND).assertTrue();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册