feat(mail): redesign the email templates in the Lincodex style
This commit is contained in:
1 parent
3c4acff803
commit
a0869d81a1
26 files changed
+363
-103
No files matched your search
@@ -293,7 +293,7 @@ func TestDeliveryHandlerStoresTheRenderedRequest(t *testing.T) {
|
||||
t.Fatal("the delivery does not name its source event")
|
||||
case delivery.RecipientUserID() != h.recipient.ID || delivery.Recipient().Address() != testRecipientAddress:
|
||||
t.Fatal("the delivery is not addressed to the account email")
|
||||
case delivery.Kind() != domain.MailKindNotification || delivery.Content().TemplateVersion() != "notification.v1":
|
||||
case delivery.Kind() != domain.MailKindNotification || delivery.Content().TemplateVersion() != "notification.v2":
|
||||
t.Fatalf("the delivery has kind %s and version %s", delivery.Kind(), delivery.Content().TemplateVersion())
|
||||
case !strings.Contains(delivery.Content().Text(), "PRIVATE-BODY") || !strings.Contains(delivery.Content().Text(), testOrigin+testLinkPath):
|
||||
t.Fatal("the stored body is not the rendering of the request")
|
||||
|
||||
Reference in new issue
Block a user