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) {
|
assertAlertBlock := func(t *testing.T, input, alertType, alertIcon string) {
|
||||||
t.Helper()
|
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))
|
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{
|
req := NewRequestWithJSON(t, "POST", "/api/v1/markdown", &api.MarkdownOption{
|
||||||
Text: input,
|
Text: input,
|
||||||
|
|
Loading…
Reference in a new issue