Update the TestRenderAlertBlocks integration test

The alert/callout blocks rendering has been changed in the previous few
commits, this adapts the test case that verifies them to the updated
output.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
This commit is contained in:
Gergely Nagy 2024-03-23 15:17:42 +01:00
parent 58d4af8fdb
commit 87cd08539e
No known key found for this signature in database

View file

@ -25,9 +25,9 @@ func TestRenderAlertBlocks(t *testing.T) {
assertAlertBlock := func(t *testing.T, input, alertType, alertIcon string) {
t.Helper()
blockquoteAttr := fmt.Sprintf(`<blockquote class="gt-py-3 attention attention-%s"`, strings.ToLower(alertType))
blockquoteAttr := fmt.Sprintf(`<blockquote class="attention-header attention-%s"`, strings.ToLower(alertType))
classAttr := fmt.Sprintf(`class="attention-%s"`, strings.ToLower(alertType))
iconAttr := fmt.Sprintf(`class="svg octicon-%s"`, alertIcon)
iconAttr := fmt.Sprintf(`svg octicon-%s`, alertIcon)
req := NewRequestWithJSON(t, "POST", "/api/v1/markdown", &api.MarkdownOption{
Text: input,