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