Fix tests
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
'use strict';
|
||||
|
||||
const apps = require('../apps.js'),
|
||||
AuditSource = require('../auditsource.js'),
|
||||
BoxError = require('../boxerror.js'),
|
||||
common = require('./common.js'),
|
||||
expect = require('expect.js'),
|
||||
@@ -284,7 +285,7 @@ describe('Apps', function () {
|
||||
});
|
||||
|
||||
it('can mark apps for reconfigure', async function () {
|
||||
await apps.configureInstalledApps();
|
||||
await apps.configureInstalledApps(AuditSource.PLATFORM);
|
||||
|
||||
const result = await apps.list();
|
||||
expect(result[0].installationState).to.be(apps.ISTATE_PENDING_CONFIGURE);
|
||||
@@ -309,7 +310,7 @@ describe('Apps', function () {
|
||||
});
|
||||
|
||||
it('can mark apps for reconfigure', async function () {
|
||||
await apps.restoreInstalledApps({});
|
||||
await apps.restoreInstalledApps({}, AuditSource.PLATFORM);
|
||||
|
||||
const result = await apps.list();
|
||||
expect(result[0].installationState).to.be(apps.ISTATE_PENDING_INSTALL);
|
||||
|
||||
@@ -165,7 +165,6 @@ async function databaseSetup() {
|
||||
await settings._setApiServerOrigin(exports.mockApiServerOrigin);
|
||||
await settings.setDashboardLocation(exports.dashboardDomain, exports.dashboardFqdn);
|
||||
await settings.initCache();
|
||||
await blobs.initSecrets();
|
||||
}
|
||||
|
||||
async function domainSetup() {
|
||||
|
||||
Reference in New Issue
Block a user