- Vitest unit tests for POST /api/erase: validation, form-only providers, all email providers, CRLF sanitization - Snapshot on PROVIDER_DATA to catch provider config drift - Mock via require cache to avoid nodemailer/sendmail dependency - sendErasureMail call assertions (args + call count) - fetch-test-emails.mjs script to refresh disposable email pool - mailer: add Reply-To header pointing to requester email - mailer: fallback to direct transport when sendmail unavailable
80 lines
2.6 KiB
Text
80 lines
2.6 KiB
Text
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`provider registry > matches snapshot 1`] = `
|
|
{
|
|
"amazon": {
|
|
"address": "38 avenue John F. Kennedy, L-1855 Luxemburgo",
|
|
"company": "Amazon Europe Core S.à r.l.",
|
|
"email": null,
|
|
"formUrl": "https://www.amazon.es/hz/contact-us/privacy-disclosure/",
|
|
"name": "Amazon",
|
|
},
|
|
"apple": {
|
|
"address": "Hollyhill Industrial Estate, Hollyhill, Cork, Irlanda",
|
|
"company": "Apple Distribution International Ltd.",
|
|
"email": "privacy@apple.com",
|
|
"name": "Apple",
|
|
},
|
|
"discord": {
|
|
"address": "444 De Haro Street, Suite 200, San Francisco, CA 94107, EE.UU.",
|
|
"company": "Discord Inc.",
|
|
"email": "privacy@discord.com",
|
|
"name": "Discord",
|
|
},
|
|
"facebook": {
|
|
"address": "4 Grand Canal Square, Grand Canal Harbour, Dublín 2, Irlanda",
|
|
"company": "Meta Platforms Ireland Limited",
|
|
"email": "privacidad-dpo@fb.com",
|
|
"name": "Facebook (Meta)",
|
|
},
|
|
"google": {
|
|
"address": "Gordon House, Barrow Street, Dublín 4, Irlanda",
|
|
"company": "Google Ireland Limited",
|
|
"email": null,
|
|
"formUrl": "https://support.google.com/policies/contact/sar_data_protection",
|
|
"name": "Google",
|
|
},
|
|
"instagram": {
|
|
"address": "4 Grand Canal Square, Grand Canal Harbour, Dublín 2, Irlanda",
|
|
"company": "Meta Platforms Ireland Limited",
|
|
"email": "privacidad-dpo@fb.com",
|
|
"name": "Instagram (Meta)",
|
|
},
|
|
"linkedin": {
|
|
"address": "Wilton Place, Dublín 2, Irlanda",
|
|
"company": "LinkedIn Ireland Unlimited Company",
|
|
"email": "privacy@linkedin.com",
|
|
"name": "LinkedIn",
|
|
},
|
|
"microsoft": {
|
|
"address": "One Microsoft Place, South County Business Park, Leopardstown, Dublín 18, Irlanda",
|
|
"company": "Microsoft Ireland Operations Limited",
|
|
"email": "msprivacy@microsoft.com",
|
|
"name": "Microsoft",
|
|
},
|
|
"reddit": {
|
|
"address": "548 Market St. #16093, San Francisco, CA 94104, EE.UU.",
|
|
"company": "Reddit Inc.",
|
|
"email": "gdpr@reddit.com",
|
|
"name": "Reddit",
|
|
},
|
|
"snapchat": {
|
|
"address": "77 Shaftesbury Avenue, Londres W1D 5DU, Reino Unido",
|
|
"company": "Snap Group Limited",
|
|
"email": "privacy@snap.com",
|
|
"name": "Snapchat",
|
|
},
|
|
"tiktok": {
|
|
"address": "10 Earlsfort Terrace, Dublín, D02 T380, Irlanda",
|
|
"company": "TikTok Technology Limited",
|
|
"email": "privacy@tiktok.com",
|
|
"name": "TikTok",
|
|
},
|
|
"twitter_x": {
|
|
"address": "One Cumberland Place, Fenian Street, Dublín 2, D02 AX07, Irlanda",
|
|
"company": "Twitter International Unlimited Company",
|
|
"email": "gdpr@twitter.com",
|
|
"name": "X (Twitter)",
|
|
},
|
|
}
|
|
`;
|