Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
francisli committed Sep 6, 2024
1 parent 7658273 commit 5a03b74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions server/helpers/email/mailer.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ const mailer = new Email({
juice: false,
});

function send(options) {
async function send(options) {
options.locals ||= {};
options.locals._layout = {
logoUrl: `${process.env.BASE_URL}/logo.svg`,
};
mailer.send(options);
return mailer.send(options);
}

export default { send };
4 changes: 2 additions & 2 deletions server/test/routes/api/v1/auth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ describe('/api/v1/auth', () => {
);
assert.deepStrictEqual(
sentMails[0].subject,
'Reset your password for your SF Lifeline account',
'Reset your password for your SF Life Line account',
);
});

Expand Down Expand Up @@ -252,7 +252,7 @@ describe('/api/v1/auth', () => {
);
assert.deepStrictEqual(
sentMails[0].subject,
'Your SF Lifeline password changed',
'Your SF Life Line password has been changed',
);
});

Expand Down

0 comments on commit 5a03b74

Please sign in to comment.