feat: html template

This commit is contained in:
u80864958
2025-08-22 11:47:34 +02:00
parent 68b0256f77
commit 2e279c9b13
14 changed files with 763 additions and 13 deletions

27
report/markdown_test.go Normal file
View File

@@ -0,0 +1,27 @@
package report
import (
"testing"
)
func TestMarkdownCheckboxesToHTML(t *testing.T) {
input := `
The application must support English and German.
## TODO's
- [x] Add multiple languages to Pages
- [x] Add multiple languages to Events`
expected := `
The application must support English and German.
## TODO's
- <input type="checkbox" checked disabled> Add multiple languages to Pages
- <input type="checkbox" checked disabled> Add multiple languages to Events`
output := markdownCheckboxesToHTML(input)
if output != expected {
t.Errorf("unexpected output:\nGot:\n%s\n\nExpected:\n%s", output, expected)
}
}