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, TEST_PORT, sendEmailWithRawSocket } from '../server.loader.js';
import { startTestServer, stopTestServer, TEST_PORT, sendEmailWithRawSocket } from '../../helpers/server.loader.js';
import type { SmtpServer } from '../../../ts/mail/delivery/smtpserver/index.js';
let testServer: SmtpServer;
@@ -130,7 +130,7 @@ tap.test('MIME Handling - Comprehensive multipart message', async (tools) => {
if (!completed) {
completed = true;
console.log('Complex MIME message accepted successfully');
expect(true).toBeTrue();
expect(true).toEqual(true);
socket.write('QUIT\r\n');
socket.end();
@@ -207,7 +207,7 @@ tap.test('MIME Handling - Quoted-printable encoding', async (tools) => {
if (!completed) {
completed = true;
console.log('Quoted-printable encoded email accepted');
expect(true).toBeTrue();
expect(true).toEqual(true);
socket.write('QUIT\r\n');
socket.end();
@@ -296,7 +296,7 @@ tap.test('MIME Handling - Base64 encoding', async (tools) => {
if (!completed) {
completed = true;
console.log('Base64 encoded email accepted');
expect(true).toBeTrue();
expect(true).toEqual(true);
socket.write('QUIT\r\n');
socket.end();
@@ -396,7 +396,7 @@ tap.test('MIME Handling - Content-Disposition headers', async (tools) => {
if (!completed) {
completed = true;
console.log('Email with various Content-Disposition headers accepted');
expect(true).toBeTrue();
expect(true).toEqual(true);
socket.write('QUIT\r\n');
socket.end();
@@ -490,7 +490,7 @@ tap.test('MIME Handling - International character sets', async (tools) => {
if (!completed) {
completed = true;
console.log('Email with international character sets accepted');
expect(true).toBeTrue();
expect(true).toEqual(true);
socket.write('QUIT\r\n');
socket.end();