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,7 +1,7 @@
import * as plugins from '@git.zone/tstest/tapbundle';
import { expect, tap } 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';
const TEST_PORT = 2525;
@ -116,7 +116,7 @@ tap.test('ERR-06: Malformed MIME handling - Invalid boundary', async (tools) =>
response.includes('malformed');
console.log('Malformed MIME response:', response.substring(0, 100));
expect(validResponse).toBeTrue();
expect(validResponse).toEqual(true);
socket.write('QUIT\r\n');
socket.end();
@ -228,7 +228,7 @@ tap.test('ERR-06: Malformed MIME handling - Missing headers', async (tools) => {
response.includes('451');
console.log('Missing headers response:', response.substring(0, 100));
expect(validResponse).toBeTrue();
expect(validResponse).toEqual(true);
socket.write('QUIT\r\n');
socket.end();
@ -349,7 +349,7 @@ tap.test('ERR-06: Malformed MIME handling - Nested multipart errors', async (too
response.includes('451');
console.log('Nested multipart response:', response.substring(0, 100));
expect(validResponse).toBeTrue();
expect(validResponse).toEqual(true);
socket.write('QUIT\r\n');
socket.end();