Improve assert

This commit is contained in:
Bjørn Erik Pedersen
2025-01-21 19:24:51 +01:00
parent 91101d24f2
commit 9885e7020d

View File

@@ -918,7 +918,7 @@ hidden
"! <!-- This is a comment -->", "! <!-- This is a comment -->",
"! script", "! script",
) )
b.AssertLogContains("! Raw HTML omitted") b.AssertLogContains("! WARN")
b = hugolib.Test(t, strings.ReplaceAll(files, "markup.goldmark.renderer.unsafe = false", "markup.goldmark.renderer.unsafe = true"), hugolib.TestOptWarn()) b = hugolib.Test(t, strings.ReplaceAll(files, "markup.goldmark.renderer.unsafe = false", "markup.goldmark.renderer.unsafe = true"), hugolib.TestOptWarn())
b.AssertFileContent("public/p1/index.html", b.AssertFileContent("public/p1/index.html",