Skip to content

Commit 7287f60

Browse files
committed
chore: adjust test cases
1 parent bac14c0 commit 7287f60

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

lib/common/test/unit-tests/mobile/application-manager-base.ts

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,8 @@ describe("ApplicationManagerBase", () => {
321321
currentlyAvailableAppsForDebugging,
322322
numberOfViewsPerApp
323323
);
324-
const currentDebuggableViews: IDictionary<
325-
Mobile.IDebugWebViewInfo[]
326-
> = {};
324+
const currentDebuggableViews: IDictionary<Mobile.IDebugWebViewInfo[]> =
325+
{};
327326
applicationManager.on(
328327
"debuggableViewFound",
329328
(appIdentifier: string, d: Mobile.IDebugWebViewInfo) => {
@@ -368,9 +367,8 @@ describe("ApplicationManagerBase", () => {
368367
const expectedResults = _.cloneDeep(
369368
currentlyAvailableAppWebViewsForDebugging
370369
);
371-
const currentDebuggableViews: IDictionary<
372-
Mobile.IDebugWebViewInfo[]
373-
> = {};
370+
const currentDebuggableViews: IDictionary<Mobile.IDebugWebViewInfo[]> =
371+
{};
374372

375373
applicationManager
376374
.checkForApplicationUpdates()
@@ -819,9 +817,8 @@ describe("ApplicationManagerBase", () => {
819817
removedApps = removedApps.concat(currentlyRemovedApps);
820818

821819
const currentlyAddedApps = [`app${index}`];
822-
currentlyInstalledApps = currentlyInstalledApps.concat(
823-
currentlyAddedApps
824-
);
820+
currentlyInstalledApps =
821+
currentlyInstalledApps.concat(currentlyAddedApps);
825822
installedApps = installedApps.concat(currentlyAddedApps);
826823

827824
await testInstalledAppsResults();
@@ -1004,7 +1001,11 @@ describe("ApplicationManagerBase", () => {
10041001
applicationManager.isApplicationInstalled = (appIdentifier: string) =>
10051002
Promise.resolve(true);
10061003

1007-
await applicationManager.reinstallApplication("appId", "packageFilePath");
1004+
await applicationManager.reinstallApplication(
1005+
"appId",
1006+
"packageFilePath",
1007+
{ clean: true } as any
1008+
);
10081009
assert.deepStrictEqual(uninstallApplicationAppIdParam, "appId");
10091010
});
10101011

@@ -1047,7 +1048,11 @@ describe("ApplicationManagerBase", () => {
10471048
return Promise.resolve();
10481049
};
10491050

1050-
await applicationManager.reinstallApplication("appId", "packageFilePath");
1051+
await applicationManager.reinstallApplication(
1052+
"appId",
1053+
"packageFilePath",
1054+
{ clean: true } as any
1055+
);
10511056

10521057
assert.isTrue(
10531058
isUninstallApplicationCalled,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy