mirror of
https://github.com/eleith/emailjs.git
synced 2024-06-16 12:59:02 +00:00
12 lines
262 B
TypeScript
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);
|
|
});
|