未验证 提交 2c3b7b1e 编写于 作者: O openharmony_ci 提交者: Gitee

!2969 bms修改hasInstall用例

Merge pull request !2969 from wangtiantian/hasInstall
......@@ -347,6 +347,7 @@ describe('ActsBmsJsTest', function () {
* @tc.desc Test hasInstalled interface.
*/
it('hasInstalled_0400', 0, async function (done) {
let flag = false;
pkg.hasInstalled({
bundleName: NUM_TWO,
success: function success(data) {
......@@ -355,11 +356,15 @@ describe('ActsBmsJsTest', function () {
},
fail: function fail(data, code) {
console.info('hasInstalled fail function in');
expect(flag).assertFalse();
flag = true;
expect(data).assertEqual(ERR_MERSSAGE);
expect(code).assertEqual(ERR_CODE);
},
complete: function complete() {
console.info('hasInstalled complete function in');
expect(flag).assertTrue();
flag = true;
}
});
done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册