8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfbf974 commit 9ebdb6fCopy full SHA for 9ebdb6f
coderd/notifications/dispatch/smtp_test.go
@@ -9,7 +9,6 @@ import (
9
"net"
10
"sync"
11
"testing"
12
- "text/template"
13
14
"github.com/emersion/go-sasl"
15
"github.com/emersion/go-smtp"
@@ -418,7 +417,11 @@ func TestSMTP(t *testing.T) {
418
417
require.NoError(t, hp.Set(listen.Addr().String()))
419
tc.cfg.Smarthost = hp
420
421
- handler := dispatch.NewSMTPHandler(tc.cfg, template.FuncMap{}, logger.Named("smtp"))
+ helpers := map[string]any{
+ "base_url": func() string { return "http://test.com" },
422
+ "current_year": func() string { return "2024" },
423
+ }
424
+ handler := dispatch.NewSMTPHandler(tc.cfg, helpers, logger.Named("smtp"))
425
426
// Start mock SMTP server in the background.
427
var wg sync.WaitGroup
0 commit comments