Skip to content

Commit

Permalink
chore: adjust test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
rigor789 committed May 20, 2024
1 parent bac14c0 commit 7287f60
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions lib/common/test/unit-tests/mobile/application-manager-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,8 @@ describe("ApplicationManagerBase", () => {
currentlyAvailableAppsForDebugging,
numberOfViewsPerApp
);
const currentDebuggableViews: IDictionary<
Mobile.IDebugWebViewInfo[]
> = {};
const currentDebuggableViews: IDictionary<Mobile.IDebugWebViewInfo[]> =
{};
applicationManager.on(
"debuggableViewFound",
(appIdentifier: string, d: Mobile.IDebugWebViewInfo) => {
Expand Down Expand Up @@ -368,9 +367,8 @@ describe("ApplicationManagerBase", () => {
const expectedResults = _.cloneDeep(
currentlyAvailableAppWebViewsForDebugging
);
const currentDebuggableViews: IDictionary<
Mobile.IDebugWebViewInfo[]
> = {};
const currentDebuggableViews: IDictionary<Mobile.IDebugWebViewInfo[]> =
{};

applicationManager
.checkForApplicationUpdates()
Expand Down Expand Up @@ -819,9 +817,8 @@ describe("ApplicationManagerBase", () => {
removedApps = removedApps.concat(currentlyRemovedApps);

const currentlyAddedApps = [`app${index}`];
currentlyInstalledApps = currentlyInstalledApps.concat(
currentlyAddedApps
);
currentlyInstalledApps =
currentlyInstalledApps.concat(currentlyAddedApps);
installedApps = installedApps.concat(currentlyAddedApps);

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

await applicationManager.reinstallApplication("appId", "packageFilePath");
await applicationManager.reinstallApplication(
"appId",
"packageFilePath",
{ clean: true } as any
);
assert.deepStrictEqual(uninstallApplicationAppIdParam, "appId");
});

Expand Down Expand Up @@ -1047,7 +1048,11 @@ describe("ApplicationManagerBase", () => {
return Promise.resolve();
};

await applicationManager.reinstallApplication("appId", "packageFilePath");
await applicationManager.reinstallApplication(
"appId",
"packageFilePath",
{ clean: true } as any
);

assert.isTrue(
isUninstallApplicationCalled,
Expand Down

0 comments on commit 7287f60

Please sign in to comment.