feat: new emails design

This commit is contained in:
fsylvain committed 2026-09-26 05:41:34 +02:00
1 parent 4e41d60142
commit 30a4df47b1
15 files changed
+498 -68

No files matched your search

@@ -90,8 +90,8 @@ func TestRegistrationGateAndVerificationEmailHttp(t *testing.T) {
if sent.Address != "alice@example.com" {
t.Errorf("expected email sent to alice@example.com, got %q", sent.Address)
}
if sent.Template != "mailValidation" {
t.Errorf("expected template mailValidation, got %q", sent.Template)
if sent.Template != "verification" {
t.Errorf("expected template verification, got %q", sent.Template)
}
storedUser, err := userRepo.GetByUsername("alice")
@@ -260,8 +260,8 @@ func TestRegistrationGateAndVerificationEmailUseCase(t *testing.T) {
if mailRepo.SentEmails[0].Address != "carol@example.com" {
t.Errorf("expected email sent to carol@example.com, got %q", mailRepo.SentEmails[0].Address)
}
if mailRepo.SentEmails[0].Template != "mailValidation" {
t.Errorf("expected template mailValidation, got %q", mailRepo.SentEmails[0].Template)
if mailRepo.SentEmails[0].Template != "verification" {
t.Errorf("expected template verification, got %q", mailRepo.SentEmails[0].Template)
}
})