On dashboard or email location change, reconfigure immediately
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user