Re-enable configure/restore test
This commit is contained in:
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user