mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
changing email to test
This commit is contained in:
parent
4f176a482f
commit
e57e4ab750
1 changed files with 4 additions and 4 deletions
|
|
@ -4,7 +4,7 @@ import { buildMailHeaders } from "./buildMailHeaders";
|
|||
describe("buildMailHeaders", () => {
|
||||
it("includes X-SES-CONFIGURATION-SET when a configuration set is provided", () => {
|
||||
const headers = buildMailHeaders({
|
||||
fromAddress: "noreply@domna.homes",
|
||||
fromAddress: "test-sender@example.test",
|
||||
sesConfigurationSet: "test-config-set",
|
||||
});
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ describe("buildMailHeaders", () => {
|
|||
|
||||
it("omits X-SES-CONFIGURATION-SET entirely when no configuration set is provided", () => {
|
||||
const headers = buildMailHeaders({
|
||||
fromAddress: "noreply@domna.homes",
|
||||
fromAddress: "test-sender@example.test",
|
||||
sesConfigurationSet: undefined,
|
||||
});
|
||||
|
||||
|
|
@ -22,10 +22,10 @@ describe("buildMailHeaders", () => {
|
|||
|
||||
it("always includes a List-Unsubscribe mailto pointing at the from address", () => {
|
||||
const headers = buildMailHeaders({
|
||||
fromAddress: "noreply@domna.homes",
|
||||
fromAddress: "test-sender@example.test",
|
||||
sesConfigurationSet: undefined,
|
||||
});
|
||||
|
||||
expect(headers["List-Unsubscribe"]).toBe("<mailto:noreply@domna.homes>");
|
||||
expect(headers["List-Unsubscribe"]).toBe("<mailto:test-sender@example.test>");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue