log4js-node / smtp

SMTP Appender for log4js-node
Apache License 2.0
14 stars 3 forks source link

fix: added error listener to prevent Node.js exit #20

Closed lamweili closed 2 years ago

lamweili commented 2 years ago

Fixed #19

lamweili commented 2 years ago

Seems like having problems with tests. Will take a while to resolve this PR.

nomiddlename commented 2 years ago

smtp uses mocks to test so that an smtp server is not needed to run the unit tests. I think all you need to do here is add that .on() function to the mock smtp transport.