update
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { tap, expect } from '@git.zone/tstest/tapbundle';
|
||||
import * as plugins from '../plugins.js';
|
||||
import * as net from 'net';
|
||||
import { startTestServer, stopTestServer, TEST_PORT, sendEmailWithRawSocket } from '../server.loader.js';
|
||||
import { startTestServer, stopTestServer, TEST_PORT, sendEmailWithRawSocket } from '../../helpers/server.loader.js';
|
||||
import type { SmtpServer } from '../../../ts/mail/delivery/smtpserver/index.js';
|
||||
|
||||
let testServer: SmtpServer;
|
||||
@ -74,7 +74,7 @@ tap.test('RFC 7208 SPF - Server handles SPF checks', async (tools) => {
|
||||
result.mailFromResponse !== undefined
|
||||
);
|
||||
|
||||
expect(allDomainsHandled).toBeTrue();
|
||||
expect(allDomainsHandled).toEqual(true);
|
||||
|
||||
socket.write('QUIT\r\n');
|
||||
socket.end();
|
||||
@ -149,7 +149,7 @@ tap.test('RFC 7208 SPF - SPF record syntax handling', async (tools) => {
|
||||
dataBuffer.includes('550') ||
|
||||
dataBuffer.includes('553');
|
||||
|
||||
expect(handled).toBeTrue();
|
||||
expect(handled).toEqual(true);
|
||||
console.log('SPF handling response:', dataBuffer.trim());
|
||||
|
||||
socket.write('QUIT\r\n');
|
||||
@ -263,7 +263,7 @@ tap.test('RFC 7208 SPF - IPv4 and IPv6 mechanism support', async (tools) => {
|
||||
dataBuffer.includes('550') ||
|
||||
dataBuffer.includes('553');
|
||||
|
||||
expect(handled).toBeTrue();
|
||||
expect(handled).toEqual(true);
|
||||
console.log('IP mechanism SPF response:', dataBuffer.trim());
|
||||
|
||||
socket.write('QUIT\r\n');
|
||||
|
Reference in New Issue
Block a user