Re-enable configure/restore test

This commit is contained in:
Girish Ramakrishnan
2019-08-30 16:12:35 -07:00
parent 7e030b149b
commit 9da2117e99

View File

@@ -1,6 +1,5 @@
/* global it:false */
/* global describe:false */
/* global xdescribe:false */
/* global before:false */
/* global after:false */
@@ -364,7 +363,7 @@ describe('Apps', function () {
});
});
xdescribe('configureInstalledApps', function () {
describe('configureInstalledApps', function () {
before(function (done) {
async.series([
appdb.update.bind(null, APP_0.id, { installationState: apps.ISTATE_INSTALLED }),
@@ -377,10 +376,10 @@ describe('Apps', function () {
apps.configureInstalledApps(function (error) {
expect(error).to.be(null);
apps.getAll(function (error, apps) {
expect(apps[0].installationState).to.be(apps.ISTATE_PENDING_CONFIGURE);
expect(apps[1].installationState).to.be(apps.ISTATE_PENDING_CONFIGURE); // erorred app can be reconfigured after restore
expect(apps[2].installationState).to.be(apps.ISTATE_PENDING_CONFIGURE);
apps.getAll(function (error, result) {
expect(result[0].installationState).to.be(apps.ISTATE_PENDING_CONFIGURE);
expect(result[1].installationState).to.be(apps.ISTATE_PENDING_CONFIGURE); // erorred app can be reconfigured after restore
expect(result[2].installationState).to.be(apps.ISTATE_PENDING_CONFIGURE);
done();
});
@@ -388,7 +387,7 @@ describe('Apps', function () {
});
});
xdescribe('restoreInstalledApps', function () {
describe('restoreInstalledApps', function () {
before(function (done) {
async.series([
appdb.update.bind(null, APP_0.id, { installationState: apps.ISTATE_INSTALLED }),