This commit is contained in:
2025-05-23 21:20:39 +00:00
parent 9629329bc2
commit 0907949f8a
86 changed files with 654 additions and 569 deletions

View File

@ -1,6 +1,6 @@
import { tap, expect } from '@git.zone/tstest/tapbundle';
import * as net from 'net';
import { startTestServer, stopTestServer } from '../server.loader.js';
import { startTestServer, stopTestServer } from '../../helpers/server.loader.js';
import type { SmtpServer } from '../../../ts/mail/delivery/smtpserver/index.js';
const TEST_PORT = 2525;
@ -79,7 +79,7 @@ tap.test('Email Routing - Local domain routing', async (tools) => {
if (!completed) {
completed = true;
console.log('Local domain email routed successfully');
expect(true).toBeTrue();
expect(true).toEqual(true);
socket.write('QUIT\r\n');
socket.end();
@ -162,7 +162,7 @@ tap.test('Email Routing - External domain routing', async (tools) => {
if (!completed) {
completed = true;
console.log('External domain email accepted for relay');
expect(true).toBeTrue();
expect(true).toEqual(true);
socket.write('QUIT\r\n');
socket.end();
@ -246,7 +246,7 @@ tap.test('Email Routing - Multiple recipients', async (tools) => {
if (!completed) {
completed = true;
console.log('Email with multiple recipients routed successfully');
expect(true).toBeTrue();
expect(true).toEqual(true);
socket.write('QUIT\r\n');
socket.end();
@ -504,7 +504,7 @@ tap.test('Email Routing - Subdomain routing', async (tools) => {
if (!completed) {
completed = true;
console.log('Subdomain routing test completed');
expect(true).toBeTrue();
expect(true).toEqual(true);
socket.write('QUIT\r\n');
socket.end();