update
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { tap, expect } from '@git.zone/tstest/tapbundle';
|
||||
import * as net from 'net';
|
||||
import { startTestServer, stopTestServer } from '../server.loader.js';
|
||||
import { startTestServer, stopTestServer } from '../../helpers/server.loader.js';
|
||||
import type { SmtpServer } from '../../../ts/mail/delivery/smtpserver/index.js';
|
||||
|
||||
const TEST_PORT = 2525;
|
||||
@ -141,7 +141,7 @@ tap.test('DSN - Success notification request', async (tools) => {
|
||||
if (!completed) {
|
||||
completed = true;
|
||||
console.log('Email with DSN success request accepted');
|
||||
expect(true).toBeTrue();
|
||||
expect(true).toEqual(true);
|
||||
|
||||
socket.write('QUIT\r\n');
|
||||
socket.end();
|
||||
@ -228,7 +228,7 @@ tap.test('DSN - Multiple notification types', async (tools) => {
|
||||
if (!completed) {
|
||||
completed = true;
|
||||
console.log('Email with multiple DSN types accepted');
|
||||
expect(true).toBeTrue();
|
||||
expect(true).toEqual(true);
|
||||
|
||||
socket.write('QUIT\r\n');
|
||||
socket.end();
|
||||
@ -280,7 +280,7 @@ tap.test('DSN - Never notify', async (tools) => {
|
||||
const notSupported = dataBuffer.includes('501') || dataBuffer.includes('555');
|
||||
|
||||
console.log(`NOTIFY=NEVER: ${accepted ? 'accepted' : notSupported ? 'not supported' : 'error'}`);
|
||||
expect(accepted || notSupported).toBeTrue();
|
||||
expect(accepted || notSupported).toEqual(true);
|
||||
|
||||
if (notSupported) {
|
||||
socket.write('RCPT TO:<recipient@example.com>\r\n');
|
||||
@ -315,7 +315,7 @@ tap.test('DSN - Never notify', async (tools) => {
|
||||
if (!completed) {
|
||||
completed = true;
|
||||
console.log('Email with NOTIFY=NEVER accepted');
|
||||
expect(true).toBeTrue();
|
||||
expect(true).toEqual(true);
|
||||
|
||||
socket.write('QUIT\r\n');
|
||||
socket.end();
|
||||
@ -401,7 +401,7 @@ tap.test('DSN - Original recipient tracking', async (tools) => {
|
||||
if (!completed) {
|
||||
completed = true;
|
||||
console.log('Email with ORCPT tracking accepted');
|
||||
expect(true).toBeTrue();
|
||||
expect(true).toEqual(true);
|
||||
|
||||
socket.write('QUIT\r\n');
|
||||
socket.end();
|
||||
@ -464,7 +464,7 @@ tap.test('DSN - Return parameter handling', async (tools) => {
|
||||
const notSupported = dataBuffer.includes('501') || dataBuffer.includes('555');
|
||||
|
||||
console.log(`RET=FULL: ${accepted ? 'accepted' : notSupported ? 'not supported' : 'error'}`);
|
||||
expect(accepted || notSupported).toBeTrue();
|
||||
expect(accepted || notSupported).toEqual(true);
|
||||
|
||||
socket.write('QUIT\r\n');
|
||||
socket.end();
|
||||
|
Reference in New Issue
Block a user