Skip to content

Commit

Permalink
fix(providers): sendgrid test
Browse files Browse the repository at this point in the history
  • Loading branch information
p-fernandez committed Jun 27, 2023
1 parent edee830 commit e1a1fa7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"start:static:build": "pnpm envsetup:docker && http-server build -p 4200 --proxy http://localhost:4200?",
"start:docker": "pnpm build && pnpm start:static:build",
"start:dev": "pnpm start",
"cypress:run": "DEBUG=cypress:*,cypress-verbose:server:util:process_profiler cross-env NODE_ENV=test cypress run",
"cypress:run": "cross-env NODE_ENV=test cypress run",
"cypress:install": "cypress install",
"cypress:open": "DEBUG=cypress:*,cypress-verbose:server:util:process_profiler cross-env NODE_ENV=test cypress open",
"cypress:run:components": "DEBUG=cypress:*,cypress-verbose:server:util:process_profiler cross-env NODE_OPTIONS=--max_old_space_size=4096 NODE_ENV=test cypress run --component",
"cypress:open": "cross-env NODE_ENV=test cypress open",
"cypress:run:components": "cross-env NODE_OPTIONS=--max_old_space_size=4096 NODE_ENV=test cypress run --component",
"start:api": "cd ../../ && pnpm start:api:test",
"storybook": "start-storybook -p 6006 -s public",
"build-storybook": "build-storybook -s public",
Expand Down
8 changes: 8 additions & 0 deletions providers/sendgrid/src/lib/sendgrid.provider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ test('should trigger sendgrid correctly', async () => {
email: mockNovuMessage.to[0],
},
],
bcc: undefined,
category: undefined,
cc: undefined,
subject: mockNovuMessage.subject,
html: mockNovuMessage.html,
ipPoolName: undefined,
from: { email: mockNovuMessage.from, name: mockConfig.senderName },
substitutions: {},
attachments: [
Expand All @@ -49,6 +53,10 @@ test('should trigger sendgrid correctly', async () => {
],
customArgs: {
id: 'message_id',
novuMessageId: 'message_id',
novuSubscriberId: undefined,
novuTransactionId: undefined,
novuWorkflowIdentifier: undefined,
},
});
});
Expand Down

0 comments on commit e1a1fa7

Please sign in to comment.