未验证 提交 ec5b3e21 编写于 作者: L Lotol 提交者: Gitee

update ExampleJsunit.test.js.

Signed-off-by: NLotol <linxiangzhi@huawei.com>
上级 00d8dd8e
...@@ -676,8 +676,10 @@ describe('ActsBundleManagerTest', function () { ...@@ -676,8 +676,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
expect(data[i].appInfo.supportedModes).assertEqual(0); if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
} }
done(); done();
}) })
...@@ -1101,8 +1103,10 @@ describe('ActsBundleManagerTest', function () { ...@@ -1101,8 +1103,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
expect(data[i].appInfo.supportedModes).assertEqual(0); if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
} }
done(); done();
}); });
...@@ -1231,8 +1235,10 @@ describe('ActsBundleManagerTest', function () { ...@@ -1231,8 +1235,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
expect(data[i].appInfo.supportedModes).assertEqual(0); if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
} }
done(); done();
}) })
...@@ -1254,8 +1260,10 @@ describe('ActsBundleManagerTest', function () { ...@@ -1254,8 +1260,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
expect(data[i].appInfo.supportedModes).assertEqual(0); if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
} }
done(); done();
}) })
...@@ -1278,8 +1286,10 @@ describe('ActsBundleManagerTest', function () { ...@@ -1278,8 +1286,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
expect(data[i].appInfo.supportedModes).assertEqual(0); if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
} }
done(); done();
}) })
...@@ -1302,8 +1312,10 @@ describe('ActsBundleManagerTest', function () { ...@@ -1302,8 +1312,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
expect(data[i].appInfo.supportedModes).assertEqual(0); if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
} }
done(); done();
}) })
...@@ -1325,8 +1337,10 @@ describe('ActsBundleManagerTest', function () { ...@@ -1325,8 +1337,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
expect(data[i].appInfo.supportedModes).assertEqual(0); if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
} }
done(); done();
}) })
...@@ -1347,8 +1361,10 @@ describe('ActsBundleManagerTest', function () { ...@@ -1347,8 +1361,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
expect(data[i].appInfo.supportedModes).assertEqual(0); if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
} }
done(); done();
}) })
...@@ -1369,8 +1385,10 @@ describe('ActsBundleManagerTest', function () { ...@@ -1369,8 +1385,10 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.icon.length).assertLarger(0); expect(data[i].appInfo.icon.length).assertLarger(0);
expect(data[i].appInfo.label.length).assertLarger(0); expect(data[i].appInfo.label.length).assertLarger(0);
} }
expect(data[i].appInfo.supportedModes).assertEqual(0); if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
}
} }
done(); done();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册