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

!4816 校验moduleName

Merge pull request !4816 from shilei91/master
......@@ -800,8 +800,10 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.process).assertEqual(NAME2);
expect(datainfo.enabled).assertEqual(true);
expect(datainfo.moduleSourceDirs.length).assertLarger(0);
expect(datainfo.moduleInfos.length).assertEqual(2);
expect(datainfo.moduleInfos[0].moduleName).assertEqual("entry");
expect(datainfo.moduleInfos[1].moduleName).assertEqual("feature");
for (let j = 0; j < datainfo.moduleInfos.length; j++) {
expect(datainfo.moduleInfos[j].moduleName).assertEqual("entry");
expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0);
}
done();
......@@ -835,8 +837,10 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.process).assertEqual(NAME2);
expect(datainfo.enabled).assertEqual(true);
expect(datainfo.moduleSourceDirs.length).assertLarger(0);
expect(datainfo.moduleInfos.length).assertEqual(2);
expect(datainfo.moduleInfos[0].moduleName).assertEqual("entry");
expect(datainfo.moduleInfos[1].moduleName).assertEqual("feature");
for (let j = 0; j < datainfo.moduleInfos.length; j++) {
expect(datainfo.moduleInfos[j].moduleName).assertEqual("entry");
expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0);
}
done();
......@@ -1524,7 +1528,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.applicationInfo.enabled).assertEqual(true);
expect(datainfo.applicationInfo.moduleInfos[0].moduleName).assertEqual("entry");
expect(datainfo.applicationInfo.moduleInfos[0].moduleSourceDir).assertEqual(DIR3);
expect(datainfo.applicationInfo.moduleInfos[1].moduleName).assertEqual("entry");
expect(datainfo.applicationInfo.moduleInfos[1].moduleName).assertEqual("feature");
expect(datainfo.applicationInfo.moduleInfos[1].moduleSourceDir).assertEqual(DIR2);
}
done();
......@@ -1565,7 +1569,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.applicationInfo.enabled).assertEqual(true);
expect(datainfo.applicationInfo.moduleInfos[0].moduleName).assertEqual("entry");
expect(datainfo.applicationInfo.moduleInfos[0].moduleSourceDir).assertEqual(DIR3);
expect(datainfo.applicationInfo.moduleInfos[1].moduleName).assertEqual("entry");
expect(datainfo.applicationInfo.moduleInfos[1].moduleName).assertEqual("feature");
expect(datainfo.applicationInfo.moduleInfos[1].moduleSourceDir).assertEqual(DIR2);
}
done();
......
......@@ -49,7 +49,7 @@
"distro": {
"moduleType": "feature",
"deliveryWithInstall": true,
"moduleName": "entry"
"moduleName": "feature"
},
"package": "com.example.myapplication2",
"name": ".MyApplication2",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册