Skip to content

Commit

Permalink
fix(activists): change tests next to apply context autofire
Browse files Browse the repository at this point in the history
  • Loading branch information
igr-santos committed Jun 12, 2024
1 parent 61c9dbe commit c600aa6
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions packages/activists-api/src/resolvers/action/next.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,13 @@ describe('next proccess on BaseAction mailchimp tests', () => {
email_from: `${opts.widget.settings.sender_name} <${opts.widget.settings.sender_email}>`,
email_to: `${opts.activist.name} <${opts.activist.email}>`,
subject: opts.widget.settings.email_subject,
body: opts.widget.settings.email_text
body: opts.widget.settings.email_text,
context: {
autofire: true,
widget_id: opts.widget.id,
mobilization_id: opts.widget.block.mobilization.id,
community_id: opts.widget.block.mobilization.community.id
}
})
});
});
Expand All @@ -139,7 +145,13 @@ describe('next proccess on BaseAction mailchimp tests', () => {
email_from: opts.widget.block.mobilization.community.email_template_from,
email_to: `${opts.activist.name} <${opts.activist.email}>`,
subject: opts.widget.settings.email_subject,
body: opts.widget.settings.email_text
body: opts.widget.settings.email_text,
context: {
autofire: true,
widget_id: opts.widget.id,
mobilization_id: opts.widget.block.mobilization.id,
community_id: opts.widget.block.mobilization.community.id
}
})
});
});
Expand Down

0 comments on commit c600aa6

Please sign in to comment.