update
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user