Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsmohan committed Mar 14, 2024
1 parent 83e9b17 commit 1bf6fb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/server/__tests__/email/email.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ describe('Email sender', () => {
sinon.replace(emailService, 'getTransport', sinon.fake.returns({ sendEmail: sendFake }));

email.deliverEmail({
fromName: 'Foo',
toAddress: '[email protected]',
ccAddress: '[email protected]',
emailHTML: '<p>foo</p>',
Expand All @@ -203,6 +204,7 @@ describe('Email sender', () => {

expect(sendFake.calledOnce).to.equal(true);
expect(sendFake.firstCall.args).to.deep.equal([{
fromName: 'Foo',
toAddress: '[email protected]',
ccAddress: '[email protected]',
subject: 'test foo email',
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/lib/email/email-nodemailer.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function createTransport() {
return nodemailer.createTransport({
host: process.env.NODEMAILER_HOST, // e.g. 'smtp.ethereal.email'
port: process.env.NODEMAILER_PORT, // e.g. 465
secure: true, // true for 465, false for other ports
secure: process.env.NODEMAILER_PORT === 465, // true for 465, false for other ports
auth: {
user: process.env.NODEMAILER_EMAIL,
pass: process.env.NODEMAILER_EMAIL_PW,
Expand Down

0 comments on commit 1bf6fb3

Please sign in to comment.