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

update ExampleJsunit.test.js.

Signed-off-by: NLotol <linxiangzhi@huawei.com>
上级 00d8dd8e
...@@ -676,9 +676,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -676,9 +676,11 @@ 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);
} }
if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.supportedModes).assertEqual(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
...@@ -1101,9 +1103,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1101,9 +1103,11 @@ 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);
} }
if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.supportedModes).assertEqual(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}); });
}) })
...@@ -1231,9 +1235,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1231,9 +1235,11 @@ 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);
} }
if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.supportedModes).assertEqual(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
...@@ -1254,9 +1260,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1254,9 +1260,11 @@ 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);
} }
if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.supportedModes).assertEqual(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
...@@ -1278,9 +1286,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1278,9 +1286,11 @@ 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);
} }
if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.supportedModes).assertEqual(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
}) })
...@@ -1302,9 +1312,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1302,9 +1312,11 @@ 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);
} }
if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.supportedModes).assertEqual(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
}) })
...@@ -1325,9 +1337,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1325,9 +1337,11 @@ 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);
} }
if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.supportedModes).assertEqual(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
...@@ -1347,9 +1361,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1347,9 +1361,11 @@ 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);
} }
if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.supportedModes).assertEqual(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(0); expect(data[i].appInfo.moduleInfos.length).assertLarger(0);
} }
}
done(); done();
}) })
...@@ -1369,9 +1385,11 @@ describe('ActsBundleManagerTest', function () { ...@@ -1369,9 +1385,11 @@ 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);
} }
if (data[i].appInfo.codePath != "1" && data[i].appInfo.codePath != "2") {
expect(data[i].appInfo.supportedModes).assertEqual(0); expect(data[i].appInfo.supportedModes).assertEqual(0);
expect(data[i].appInfo.moduleInfos.length).assertLarger(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.
先完成此消息的编辑!
想要评论请 注册