changing email to test

This commit is contained in:
Khalim Conn-Kowlessar 2026-05-27 15:01:26 +00:00
parent 4f176a482f
commit e57e4ab750

View file

@ -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>");
});
});