Return errors properly from gmi2html

This commit is contained in:
2025-03-02 15:00:01 +02:00
parent 47340aebb8
commit f78a89c56c
4 changed files with 10 additions and 6 deletions

View File

@@ -61,7 +61,7 @@ func TestConvertGeminiContent(t *testing.T) {
func TestGmi2html(t *testing.T) {
sample := "# Hello Gemini\n\nThis is a test document.\n\n=> https://gemini.circumlunar.space/ Project Gemini"
result := Gmi2html(sample, "Gemini Test")
result, _ := Gmi2html(sample, "Gemini Test")
// Check that it contains the expected elements
if !strings.Contains(result, "<title>Gemini Test</title>") {