Skip to content

Commit

Permalink
test: Fix tests to add support for new SMTP account types
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebouthinon committed Dec 15, 2023
1 parent 3d4e8e0 commit f385230
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/application/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ hermesMessengerPlugin.clients.sendgrid.addAccount(
"SG.apiKey",
"amaret@kuzzle.io"
);

hermesMessengerPlugin.clients.smtp.addAccount(
"common",
"smtp.example.com",
Expand Down
4 changes: 4 additions & 0 deletions tests/scenarios/smtp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,13 @@ describe("SMTP", () => {
action: "listAccounts",
});

console.log(response.result);

expect(response.result).toMatchObject({
accounts: [
{ name: "common", options: { defaultSender: "amaret@kuzzle.io" } },
{ name: "starttls", options: { defaultSender: "amaret@kuzzle.io" } },
{ name: "tls", options: { defaultSender: "amaret@kuzzle.io" } },
{ name: "ilayda", options: { defaultSender: "ilayda@gmail.com" } },
{
name: "water-fairy",
Expand Down

0 comments on commit f385230

Please sign in to comment.