提交 9b683861 编写于 作者: O openharmony_ci 提交者: Gitee

!1128 Update test code

Merge pull request !1128 from blackleon/update_master_1122
...@@ -1510,7 +1510,7 @@ describe('ActsFeatureAbilityTest', function () { ...@@ -1510,7 +1510,7 @@ describe('ActsFeatureAbilityTest', function () {
expect(info.name).assertEqual("com.example.actsfeatureabilitytest"); expect(info.name).assertEqual("com.example.actsfeatureabilitytest");
expect(info.description).assertEqual("$string:mainability_description"); expect(info.description).assertEqual("$string:mainability_description");
// expect(info.descriptionId).assertEqual(0); //create by DevEco when building HAP. // expect(info.descriptionId).assertEqual(0); //create by DevEco when building HAP.
expect(info.systemApp).assertEqual(false); expect(info.systemApp).assertEqual(true);
expect(info.enabled).assertEqual(true); expect(info.enabled).assertEqual(true);
expect(info.label).assertEqual("$string:app_name"); expect(info.label).assertEqual("$string:app_name");
// expect(info.labelId).assertEqual(0); //create by DevEco when building HAP. // expect(info.labelId).assertEqual(0); //create by DevEco when building HAP.
...@@ -1672,7 +1672,7 @@ describe('ActsFeatureAbilityTest', function () { ...@@ -1672,7 +1672,7 @@ describe('ActsFeatureAbilityTest', function () {
function checkAppType(info) { function checkAppType(info) {
console.log("AppType : " + info); console.log("AppType : " + info);
expect(typeof (info)).assertEqual("string"); expect(typeof (info)).assertEqual("string");
expect(info).assertEqual("third-party"); expect(info).assertEqual("system");
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册