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';
let testServer: any;
@ -107,7 +107,7 @@ tap.test('Special Character Handling - Comprehensive Unicode test', async (tools
if (!completed) {
completed = true;
console.log('Email with special characters accepted successfully');
expect(true).toBeTrue();
expect(true).toEqual(true);
socket.write('QUIT\r\n');
socket.end();
@ -195,7 +195,7 @@ tap.test('Special Character Handling - Control characters', async (tools) => {
if (!completed) {
completed = true;
console.log('Email with control characters accepted');
expect(true).toBeTrue();
expect(true).toEqual(true);
socket.write('QUIT\r\n');
socket.end();
@ -266,7 +266,7 @@ tap.test('Special Character Handling - Subject header encoding', async (tools) =
if (!completed) {
completed = true;
console.log('Email with encoded subject headers accepted');
expect(true).toBeTrue();
expect(true).toEqual(true);
socket.write('QUIT\r\n');
socket.end();
@ -338,7 +338,7 @@ tap.test('Special Character Handling - Address headers with special chars', asyn
if (!completed) {
completed = true;
console.log('Email with special characters in addresses accepted');
expect(true).toBeTrue();
expect(true).toEqual(true);
socket.write('QUIT\r\n');
socket.end();
@ -435,7 +435,7 @@ tap.test('Special Character Handling - Mixed encodings', async (tools) => {
if (!completed) {
completed = true;
console.log('Email with mixed character encodings accepted');
expect(true).toBeTrue();
expect(true).toEqual(true);
socket.write('QUIT\r\n');
socket.end();