remove nested describe, does not work as I thought

This commit is contained in:
Girish Ramakrishnan 2016-06-24 10:52:38 -05:00
parent 1898fe20fb
commit c9a6fb1a2a
1 changed files with 64 additions and 70 deletions

View File

@ -66,7 +66,7 @@ describe('Cloudron backup testing', function () {
cloudron.setCredentials(owner.password, token);
});
describe('mail tests as normal user', function () {
// mail tests as normal user
it('can send mail to cloudron user', function (done) {
mailer.sendMailToCloudronUser(owner.username + '@' + cloudron.fqdn(), done);
});
@ -90,9 +90,8 @@ describe('Cloudron backup testing', function () {
it('can save a sieve script', function (done) {
cloudron.saveSieveScript(owner, done);
});
});
describe('mail alias tests', function () {
// mail alias tests
it('can set aliases', function () {
cloudron.setAliases(owner, ['admin', 'mail']);
});
@ -108,9 +107,8 @@ describe('Cloudron backup testing', function () {
it('did receive mail to alias (using alias creds)', function (done) {
cloudron.checkMail({ username: 'admin', password: owner.password, to: 'admin' }, done);
});
});
describe('app pre-restore', function () {
////////////////////////// restore
var location = 'test' + (Math.random() * 10000).toFixed();
it('can install app', function () {
var manifest = appStore.getManifest(common.TESTAPP_ID, common.TESTAPP_VERSION);
@ -124,7 +122,6 @@ describe('Cloudron backup testing', function () {
it('can check the addons', function () {
cloudron.checkAddons(cloudron.appFqdn(location), owner);
});
});
it('can backup the box', function () {
backupInfo = cloudron.backup();
@ -151,7 +148,7 @@ describe('Cloudron backup testing', function () {
cloudron.setCredentials(owner.password, token);
});
describe('mail tests as normal user', function() {
// mail tests as normal user
it('retains old mail', function (done) {
cloudron.checkMail(owner, owner.username, done);
});
@ -159,9 +156,7 @@ describe('Cloudron backup testing', function () {
it('can check sieve script', function (done) {
cloudron.checkSieveScript(owner, done);
});
});
describe('app tests', function () {
it('wait for app', function () {
cloudron.waitForApp(appId);
});
@ -173,7 +168,6 @@ describe('Cloudron backup testing', function () {
it('can uninstall app', function () {
cloudron.uninstallApp(appId);
});
});
it('can delete the cloudron', function () {
appStore.deleteCloudron(box);