feat: turn off notification via email (#14520)

This commit is contained in:
Joobi S B
2024-09-11 19:40:24 +05:30
committed by GitHub
parent 5bd19f8ba3
commit 3301212972
9 changed files with 153 additions and 14 deletions

View File

@ -56,6 +56,15 @@ func TestGoTemplate(t *testing.T) {
"url": "https://mocked-server-address/@johndoe/my-workspace"
}]`,
},
{
name: "render notification template ID",
in: `{{ .NotificationTemplateID }}`,
payload: types.MessagePayload{
NotificationTemplateID: "4e19c0ac-94e1-4532-9515-d1801aa283b2",
},
expectedOutput: "4e19c0ac-94e1-4532-9515-d1801aa283b2",
expectedErr: nil,
},
}
for _, tc := range tests {