提交 d000f40e 编写于 作者: R r00559040

xts update

Signed-off-by: Nr00559040 <ry.renyi@huawei.com>
上级 0593d43d
...@@ -44,6 +44,7 @@ describe('ActsBmsHapModuleTest', function () { ...@@ -44,6 +44,7 @@ describe('ActsBmsHapModuleTest', function () {
let hapModuleInfo = result.hapModuleInfo[0]; let hapModuleInfo = result.hapModuleInfo[0];
expect(hapModuleInfo.moduleName).assertEqual('entry'); expect(hapModuleInfo.moduleName).assertEqual('entry');
expect(hapModuleInfo.mainAbilityName).assertEqual('com.example.bmsmainabilityfirstscene.MainAbility'); expect(hapModuleInfo.mainAbilityName).assertEqual('com.example.bmsmainabilityfirstscene.MainAbility');
expect(hapModuleInfo.mainElementName).assertEqual('com.example.bmsmainabilityfirstscene.MainAbility');
expect(hapModuleInfo.name).assertEqual('com.example.bmsmainabilityfirstscene'); expect(hapModuleInfo.name).assertEqual('com.example.bmsmainabilityfirstscene');
expect(hapModuleInfo.description).assertEqual(''); expect(hapModuleInfo.description).assertEqual('');
expect(hapModuleInfo.descriptionId).assertEqual(0); expect(hapModuleInfo.descriptionId).assertEqual(0);
......
...@@ -91,6 +91,10 @@ describe('ActsBundleManagerTest', function () { ...@@ -91,6 +91,10 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.versionCode).assertEqual(VERSIONCODE1) expect(datainfo.versionCode).assertEqual(VERSIONCODE1)
expect(datainfo.versionName).assertLarger(0) expect(datainfo.versionName).assertLarger(0)
expect(datainfo.entryModuleName).assertEqual("entry") expect(datainfo.entryModuleName).assertEqual("entry")
expect(datainfo.installTime).assertLarger(0)
expect(datainfo.appId).assertContain(NAME1)
expect(datainfo.type).assertEqual("")
expect(datainfo.cpuAbi).assertEqual("")
expect(datainfo.appInfo.name).assertEqual(NAME1) expect(datainfo.appInfo.name).assertEqual(NAME1)
expect(datainfo.appInfo.description).assertEqual("$string:mainability_description") expect(datainfo.appInfo.description).assertEqual("$string:mainability_description")
expect(datainfo.appInfo.descriptionId >= 0).assertTrue() expect(datainfo.appInfo.descriptionId >= 0).assertTrue()
...@@ -3014,5 +3018,15 @@ describe('ActsBundleManagerTest', function () { ...@@ -3014,5 +3018,15 @@ describe('ActsBundleManagerTest', function () {
} }
}) })
/**
* @tc.number installErrCodeTest_0100
* @tc.name InstallErrorCode::STATUS_FAILED_NO_SPACE_LEFT
* @tc.desc Test install errcode STATUS_FAILED_NO_SPACE_LEFT.
*/
it('installErrCodeTest_0100', 0, async function (done) {
expect(demo.InstallErrorCode.STATUS_FAILED_NO_SPACE_LEFT).assertEqual(66);
done();
})
}) })
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册