From 43e687fadd9744f197387a14079179ffd7514292 Mon Sep 17 00:00:00 2001 From: fangyun Date: Tue, 25 Oct 2022 11:14:12 +0800 Subject: [PATCH] fixed managed event coverage Signed-off-by: fangyun --- .../edm_xts_stage/entry/src/main/ets/test/commom.ets | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/customization/edm_xts_stage/entry/src/main/ets/test/commom.ets b/customization/edm_xts_stage/entry/src/main/ets/test/commom.ets index a6540fcd9..0aab56c4b 100644 --- a/customization/edm_xts_stage/entry/src/main/ets/test/commom.ets +++ b/customization/edm_xts_stage/entry/src/main/ets/test/commom.ets @@ -13,6 +13,8 @@ * limitations under the License. */ +import enterpriseDeviceManager from '@ohos.enterpriseDeviceManager' + const WANT1 = { bundleName: "com.example.extensionzerotest", abilityName: "com.example.extensionzerotest.EnterpriseAdminAbility" @@ -39,7 +41,10 @@ const DEFAULT_USER_ID = 100; const TEST_USER_ID = 101; const ERR_USER_ID = 102; -const SUBSCRIBE_EVENTS: Array = [0,1]; +const SUBSCRIBE_EVENTS: Array = [ + enterpriseDeviceManager.ManagedEvent.MANAGED_EVENT_BUNDLE_ADDED, + enterpriseDeviceManager.ManagedEvent.MANAGED_EVENT_BUNDLE_REMOVED +]; const SUBSCRIBE_INVALID_EVENTS: Array = [20,21]; export { -- GitLab