import { describe, expect, test } from "vitest"; import { renderReactEmail } from "../render-helpers.js"; import { BaseLayout } from "./BaseLayout.js"; import { Footer } from "./Footer.js"; import { defaultMailBrand, withBrandDefaults } from "./theme.js"; describe("Footer platform-link contract", () => { test("keeps every platform legal link when overrides try to remove them", () => { const brand = withBrandDefaults({ privacyUrl: undefined, termsUrl: undefined, imprintUrl: undefined }); const { html } = renderReactEmail(