1
0
mirror of https://github.com/eleith/emailjs.git synced 2024-06-26 00:39:03 +00:00
emailjs/test/connection.ts

12 lines
262 B
TypeScript
Raw Normal View History

import test from 'ava';
import { SMTPConnection } from '../email.js';
test('accepts a custom logger', async (t) => {
const logger = () => {
/** ø */
};
const connection = new SMTPConnection({ logger });
t.is(Reflect.get(connection, 'log'), logger);
});