Skip to content

Commit

Permalink
Fix email templates extension (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
reaper47 committed Feb 9, 2024
1 parent 633e001 commit ec68ce2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions internal/templates/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
type EmailTemplate string

const (
EmailContact EmailTemplate = "contact.mjml"
EmailEndOfService EmailTemplate = "end-of-service.mjml"
EmailErrorAdmin EmailTemplate = "error-admin.mjml"
EmailIntro EmailTemplate = "intro.mjml"
EmailReleases EmailTemplate = "releases.mjml"
EmailContact EmailTemplate = "contact.gohtml"
EmailEndOfService EmailTemplate = "end-of-service.gohtml"
EmailErrorAdmin EmailTemplate = "error-admin.gohtml"
EmailIntro EmailTemplate = "intro.gohtml"
EmailReleases EmailTemplate = "releases.gohtml"
)

// String represents the email template as a string, being the file name.
Expand Down
10 changes: 5 additions & 5 deletions internal/templates/email_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ var emailTemplates = []templates.EmailTemplate{

func TestEmailTemplate_String(t *testing.T) {
want := []string{
"contact.mjml",
"end-of-service.mjml",
"error-admin.mjml",
"intro.mjml",
"releases.mjml",
"contact.gohtml",
"end-of-service.gohtml",
"error-admin.gohtml",
"intro.gohtml",
"releases.gohtml",
}
for i, template := range emailTemplates {
if got := template.String(); got != want[i] {
Expand Down

0 comments on commit ec68ce2

Please sign in to comment.