From 3001462da1d1b44952a42ef37617047a7851c31e Mon Sep 17 00:00:00 2001 From: Dima Grossman Date: Wed, 4 Oct 2023 10:41:06 +0300 Subject: [PATCH] fix: test on nodemailer --- providers/nodemailer/src/lib/nodemailer.provider.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/providers/nodemailer/src/lib/nodemailer.provider.spec.ts b/providers/nodemailer/src/lib/nodemailer.provider.spec.ts index 082f51037ed..ddd50218a2b 100644 --- a/providers/nodemailer/src/lib/nodemailer.provider.spec.ts +++ b/providers/nodemailer/src/lib/nodemailer.provider.spec.ts @@ -44,6 +44,7 @@ describe('Config is set to secure=false but not user and password set', () => { expect(nodemailer.createTransport).toHaveBeenCalled(); expect(nodemailer.createTransport).toHaveBeenCalledWith({ + name: config.host, host: config.host, port: config.port, secure: config.secure, @@ -95,6 +96,7 @@ describe('Config is set to secure=false (default; TLS used if server supports ST expect(nodemailer.createTransport).toHaveBeenCalled(); expect(nodemailer.createTransport).toHaveBeenCalledWith({ + name: mockConfig.host, host: mockConfig.host, port: mockConfig.port, secure: mockConfig.secure,