1
0
mirror of https://github.com/eleith/emailjs.git synced 2024-06-16 12:59:02 +00:00
emailjs/test/connection.ts
2022-04-26 19:14:14 -07:00

12 lines
262 B
TypeScript

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);
});