mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 06:03:51 +03:00
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:
parent
58d4af8fdb
commit
87cd08539e
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue