mailboxdb: merge into mail.js

This commit is contained in:
Girish Ramakrishnan
2021-08-17 15:45:57 -07:00
parent 98ef6dfae9
commit fa9938f50a
12 changed files with 727 additions and 1233 deletions

View File

@@ -496,11 +496,8 @@ describe('Mail API', function () {
describe('aliases', function () {
const MAILBOX_NAME = 'support';
after(function (done) {
mail._removeMailboxes(dashboardDomain, function (error) {
if (error) return done(error);
done();
});
after(async function () {
await mail._delByDomain(dashboardDomain);
});
it('add the mailbox', async function () {
@@ -565,12 +562,8 @@ describe('Mail API', function () {
describe('mailinglists', function () {
const LIST_NAME = 'people';
after(function (done) {
mail._removeMailboxes(dashboardDomain, function (error) {
if (error) return done(error);
done();
});
after(async function () {
await mail._delByDomain(dashboardDomain);
});
it('add fails without groupId', async function () {