add and remove maildb entries when domain is created and removed

This commit is contained in:
Girish Ramakrishnan
2018-01-21 20:28:08 -08:00
parent 93d5ce63ae
commit 6fdb093595
2 changed files with 14 additions and 9 deletions

View File

@@ -1755,12 +1755,9 @@ describe('database', function () {
mailFromValidation: true
};
before(function (done) {
domaindb.add(DOMAIN_0.domain, { zoneName: DOMAIN_0.zoneName, provider: DOMAIN_0.provider, config: DOMAIN_0.config }, done);
});
it('can add mail domain', function (done) {
maildb.add(MAIL_DOMAIN_0.domain, done);
// this also adds the mail domain
domaindb.add(DOMAIN_0.domain, { zoneName: DOMAIN_0.zoneName, provider: DOMAIN_0.provider, config: DOMAIN_0.config }, done);
});
it('cannot add same domain twice', function (done) {