fix(interfaces): Remove legacy interfaces
This commit is contained in:
@ -2,7 +2,6 @@ import { tap, expect } from '@git.zone/tstest/tapbundle';
|
||||
import * as plugins from '../ts/plugins.js';
|
||||
// SzPlatformService doesn't exist in codebase - using DcRouter instead for integration tests
|
||||
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 { smtpClientMod } from '../ts/mail/delivery/index.js';
|
||||
import { SmtpServer } from '../ts/mail/delivery/smtpserver/smtp-server.js';
|
||||
@ -25,30 +24,6 @@ tap.test('should be able to create an SMTP server', async (tools) => {
|
||||
expect(smtpServer.options.hostname).toEqual('test.example.com');
|
||||
});
|
||||
|
||||
tap.test('should be able to create an EmailService', async (tools) => {
|
||||
// Create an email service with test config
|
||||
const emailService = new EmailService({
|
||||
useEmail: true,
|
||||
domainRules: [],
|
||||
deliveryConfig: {
|
||||
smtpHosts: [{
|
||||
host: 'smtp.test.com',
|
||||
port: 587,
|
||||
secure: false,
|
||||
auth: {
|
||||
user: 'test@example.com',
|
||||
pass: 'testpass'
|
||||
}
|
||||
}]
|
||||
}
|
||||
});
|
||||
|
||||
// Verify it was created properly
|
||||
expect(emailService).toBeTruthy();
|
||||
expect(emailService.bounceManager).toBeTruthy();
|
||||
expect(emailService.templateManager).toBeTruthy();
|
||||
expect(emailService.emailValidator).toBeTruthy();
|
||||
});
|
||||
|
||||
tap.test('DcRouter should support email configuration', async (tools) => {
|
||||
// Create a DcRouter with email config
|
||||
|
Reference in New Issue
Block a user