mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-10-31 17:11:13 +01:00
Fix linter
This commit is contained in:
parent
7fed392e0c
commit
21c6776269
1 changed files with 2 additions and 1 deletions
|
@ -2824,11 +2824,12 @@ template ""}}`,
|
|||
`We cannot {{- template "aa"}}`,
|
||||
}
|
||||
for _, disallowedTemplate := range disallowedTemplates {
|
||||
messageTemplate := disallowedTemplate
|
||||
t.Run(disallowedTemplate, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
response := request(t, s, "PUT", `/mytopic`, `{}`, map[string]string{
|
||||
"Template": "yes",
|
||||
"Message": disallowedTemplate,
|
||||
"Message": messageTemplate,
|
||||
})
|
||||
require.Equal(t, 400, response.Code)
|
||||
require.Equal(t, 40044, toHTTPError(t, response.Body.String()).Code)
|
||||
|
|
Loading…
Reference in a new issue