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

@ -73,7 +73,7 @@ tap.test('Permanent Failures - should return 5xx for invalid recipient syntax',
const permanentFailureCodes = ['550', '551', '552', '553', '554', '501'];
const isPermanentFailure = permanentFailureCodes.some(code => rcptResponse.includes(code));
expect(isPermanentFailure).toBeTrue();
expect(isPermanentFailure).toEqual(true);
// Clean up
socket.write('QUIT\r\n');
@ -142,7 +142,7 @@ tap.test('Permanent Failures - should handle non-existent domain', async (tools)
// 2. Reject with permanent failure (5xx)
// Both are valid approaches
const acceptedOrRejected = rcptResponse.includes('250') || /^5\d{2}/.test(rcptResponse);
expect(acceptedOrRejected).toBeTrue();
expect(acceptedOrRejected).toEqual(true);
if (rcptResponse.includes('250')) {
console.log('Server accepts unknown domains (will handle bounces later)');
@ -297,7 +297,7 @@ tap.test('Permanent Failures - should persist after RSET', async (tools) => {
console.log('Permanent failures persist correctly after RSET');
} else {
console.log('Server accepts invalid syntax in MAIL FROM (lenient parsing)');
expect(true).toBeTrue();
expect(true).toEqual(true);
}
// Clean up
@ -311,7 +311,7 @@ tap.test('Permanent Failures - should persist after RSET', async (tools) => {
tap.test('cleanup - stop SMTP server', async () => {
await stopTestServer(testServer);
expect(true).toBeTrue();
expect(true).toEqual(true);
});
tap.start();