This commit is contained in:
2025-05-27 10:39:29 +00:00
parent 69304dc839
commit c3b14c0f58
6 changed files with 25 additions and 132 deletions

View File

@ -4,7 +4,7 @@ import * as plugins from '../ts/plugins.js';
import DcRouter from '../ts/classes.dcrouter.js';
import { EmailService } from '../ts/mail/services/classes.emailservice.js';
import { BounceManager } from '../ts/mail/core/classes.bouncemanager.js';
import { SmtpClient } from '../ts/mail/delivery/classes.smtp.client.js';
import { smtpClientMod } from '../ts/mail/delivery/index.js';
import { SmtpServer } from '../ts/mail/delivery/smtpserver/smtp-server.js';
// Test the new integration architecture
@ -83,7 +83,7 @@ tap.test('SMTP client should be able to connect to SMTP server', async (tools) =
socketTimeout: 5000
};
const smtpClient = new SmtpClient(options);
const smtpClient = smtpClientMod.createSmtpClient(options);
// Verify it was created properly
expect(smtpClient).toBeTruthy();