diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/MainAbility/test/GetAbilityLabelJsUnit.test.ets b/appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/MainAbility/test/GetAbilityLabelJsUnit.test.ets index 8a95165d47b1621bfe63d8d3da5cebbf83cde0ee..5970af61d82877cdba3beb69366cd663f4dc1f93 100644 --- a/appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/MainAbility/test/GetAbilityLabelJsUnit.test.ets +++ b/appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/MainAbility/test/GetAbilityLabelJsUnit.test.ets @@ -41,7 +41,7 @@ export default function getAbilityLabelJsUnit() { expect(error).assertFail(); }); Bundle.getAbilityLabel(BUNDLE_NAME, ABILITY_NAME, (error, data) => { - expect(error).assertEqual(undefined); + expect(error).assertNull(); expect(data).assertEqual("entry_MainAbility"); done(); }); @@ -66,7 +66,7 @@ export default function getAbilityLabelJsUnit() { let timeNewStamp = Utils.getNowTime(); Utils.getDurationTime('[context_getAbilityLabel_test_0200]', timeOldStamp, timeNewStamp); expect(data).assertEqual("bmsfirstright"); - expect(error).assertEqual(undefined); + expect(error).assertNull(); done(); }); });