diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbmsetsmodulenametest/entry/src/main/ets/test/ActsBmsEtsModuleNameTest.test.ets b/bundlemanager/bundle_standard/bundlemanager/actsbmsetsmodulenametest/entry/src/main/ets/test/ActsBmsEtsModuleNameTest.test.ets index 4b2de773d09b4a2c66ef4a0cbfb014c6e3164a99..3d074dd1eb7fe75a2a7e8b5af10449ea0fc81e33 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbmsetsmodulenametest/entry/src/main/ets/test/ActsBmsEtsModuleNameTest.test.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbmsetsmodulenametest/entry/src/main/ets/test/ActsBmsEtsModuleNameTest.test.ets @@ -268,7 +268,7 @@ export default function actsBmsJsModuleNameTest() { expect(err).assertFail(); }); bundle.getAbilityLabel(BUNDLE_NAME, MODULE_NAME3, ABILITY_NAME, (err, data) => { - expect(err).assertEqual(SUCCESS_CODE); + expect(err).assertNull(); if (err) { console.error('[GetAbilityLabel_0300]Operation failed. Err: ' + JSON.stringify(err)); } diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/GetAbilityLabelJsUnit.test.ets b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/GetAbilityLabelJsUnit.test.ets index c34be3094a7bf029f3ec916b9f02bbc13ace235a..07a6ef4a0a44664bea75835baeb85b495da9bbe3 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/GetAbilityLabelJsUnit.test.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/GetAbilityLabelJsUnit.test.ets @@ -41,7 +41,7 @@ export default function getAbilityLabel() { expect(error).assertFail(); }); Bundle.getAbilityLabel(BUNDLE_NAME, ABILITY_NAME, (error, data) => { - expect(error).assertEqual(0); + expect(error).assertNull(); expect(data).assertEqual("entry_MainAbility"); done(); }); @@ -66,7 +66,7 @@ export default function getAbilityLabel() { let timeNewStamp = Utils.getNowTime(); Utils.getDurationTime('[context_getAbilityLabel_test_0200]', timeOldStamp, timeNewStamp); expect(data).assertEqual("bmsfirstright"); - expect(error).assertEqual(0); + expect(error).assertNull(); done(); }); });