diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getApplicationInfoJsunit.test.ets b/appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getApplicationInfoJsunit.test.ets index 18eef18f6beed597f0782293b53786ea72434162..c0f5e35d21b1eb3b7abb6a1178fb85a4ab01ad60 100644 --- a/appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getApplicationInfoJsunit.test.ets +++ b/appexecfwk/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/getApplicationInfoJsunit.test.ets @@ -399,7 +399,7 @@ export default function applicationBundleJsunit() { Bundle.BundleFlag.GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT).then((data) => { expect(data.fingerprint).assertEqual(TEST_DEMO); }).catch((error) => { - expect(error).assertEqual(1); + expect(data).assertFail(); }); done() }); @@ -413,9 +413,7 @@ export default function applicationBundleJsunit() { Bundle.getApplicationInfo(BUNDLE_NAME, Bundle.BundleFlag.GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT, (error, data) => { expect(data.fingerprint).assertEqual(TEST_DEMO); - if(error){ - expect(err).assertEqual(1); - } + expect(err).assertEqual(1); done(); }); });