On dashboard or email location change, reconfigure immediately

This commit is contained in:
Girish Ramakrishnan
2023-08-21 18:18:03 +05:30
parent 9e093db7d8
commit 79af6c1a68
6 changed files with 36 additions and 36 deletions
+4 -4
View File
@@ -342,7 +342,7 @@ describe('Apps', function () {
});
});
describe('configureInstalledApps', function () {
describe('configureApps', function () {
const app1 = Object.assign({}, app, { id: 'id1', installationState: apps.ISTATE_ERROR, subdomain: 'loc1' });
const app2 = Object.assign({}, app, { id: 'id2', installationState: apps.ISTATE_INSTALLED, subdomain: 'loc2' });
@@ -358,7 +358,7 @@ describe('Apps', function () {
});
it('can mark apps for reconfigure', async function () {
await apps.configureInstalledApps(await apps.list(), AuditSource.PLATFORM);
await apps.configureApps(await apps.list(), { scheduleNow: false }, AuditSource.PLATFORM);
const result = await apps.list();
expect(result[0].installationState).to.be(apps.ISTATE_PENDING_CONFIGURE);
@@ -367,7 +367,7 @@ describe('Apps', function () {
});
});
describe('restoreInstalledApps', function () {
describe('restoreApps', function () {
const app1 = Object.assign({}, app, { id: 'id1', installationState: apps.ISTATE_ERROR, subdomain: 'loc1' });
const app2 = Object.assign({}, app, { id: 'id2', installationState: apps.ISTATE_INSTALLED, subdomain: 'loc2' });
@@ -383,7 +383,7 @@ describe('Apps', function () {
});
it('can mark apps for reconfigure', async function () {
await apps.restoreInstalledApps({}, AuditSource.PLATFORM);
await apps.restoreApps(await apps.list(), { scheduleNow: false }, AuditSource.PLATFORM);
const result = await apps.list();
expect(result[0].installationState).to.be(apps.ISTATE_PENDING_INSTALL);