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

@ -99,7 +99,7 @@ tap.test('Invalid Character Handling - should handle control characters in email
const accepted = finalResponse.includes('250');
const rejected = finalResponse.includes('550') || finalResponse.includes('554');
expect(accepted || rejected).toBeTrue();
expect(accepted || rejected).toEqual(true);
if (rejected) {
console.log('Server rejected control characters (strict security)');
@ -376,7 +376,7 @@ tap.test('Invalid Character Handling - should handle bare LF and CR', async (too
console.log('Server rejected bare LF/CR (strict SMTP compliance)');
}
expect(accepted || rejected).toBeTrue();
expect(accepted || rejected).toEqual(true);
// Clean up
socket.write('QUIT\r\n');
@ -473,7 +473,7 @@ tap.test('Invalid Character Handling - should handle long lines without proper f
tap.test('cleanup - stop SMTP server', async () => {
await stopTestServer(testServer);
expect(true).toBeTrue();
expect(true).toEqual(true);
});
tap.start();