Skip to content

Commit

Permalink
tests(sendgrid): Modifica spy para considerar campo meta
Browse files Browse the repository at this point in the history
  • Loading branch information
pabrrs committed Jun 10, 2020
1 parent ff6388d commit da4f661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/client/sendgrid-client.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const logger = require('../../../src/client/logger-client')
const sendgridConfig = require('../../../src/config/sendgrid-config')
const sendgridClient = require('../../../src/client/sendgrid-client')

describe('[Unit] clients/sendgrid-client', () => {
describe('[Unit] client/sendgrid-client', () => {
describe('.sendMail', () => {
const stubSend = sinon.stub()
const spySetApiKey = sinon.spy()
Expand Down Expand Up @@ -36,7 +36,7 @@ describe('[Unit] clients/sendgrid-client', () => {
const calledCorrectly = spyLoggerDebug.calledWith({
action: 'sendgrid-client.sendMail',
message: 'Sending mail',
opts: {
meta: {
to: fixture.to,
from: sendgridConfig.fromEmail,
subject: fixture.subject,
Expand Down

0 comments on commit da4f661

Please sign in to comment.