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