Skip to content

Commit 53dc29f

Browse files
committed
fix: base_url
1 parent c23da28 commit 53dc29f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/notifications/notifications_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,12 +919,12 @@ func TestNotificationTemplatesCanRender(t *testing.T) {
919919
Scan(&titleTmpl, &bodyTmpl)
920920
require.NoError(t, err, "failed to query body template for template:", tc.id)
921921

922-
title, err := render.GoTemplate(titleTmpl, tc.payload, nil)
922+
title, err := render.GoTemplate(titleTmpl, tc.payload, defaultHelpers())
923923
require.NotContainsf(t, title, render.NoValue, "template %q is missing a label value", tc.name)
924924
require.NoError(t, err, "failed to render notification title template")
925925
require.NotEmpty(t, title, "title should not be empty")
926926

927-
body, err := render.GoTemplate(bodyTmpl, tc.payload, nil)
927+
body, err := render.GoTemplate(bodyTmpl, tc.payload, defaultHelpers())
928928
require.NoError(t, err, "failed to render notification body template")
929929
require.NotEmpty(t, body, "body should not be empty")
930930
})

0 commit comments

Comments
 (0)