From: Bjørn Erik Pedersen Date: Tue, 21 Jan 2025 18:19:20 +0000 (+0100) Subject: Improve assertions X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=91101d24f23255a45f0bb0e5eb8aeeba819e20a4;p=brevno-suite%2Fhugo Improve assertions --- diff --git a/markup/goldmark/goldmark_integration_test.go b/markup/goldmark/goldmark_integration_test.go index 356e60153..faccf15ac 100644 --- a/markup/goldmark/goldmark_integration_test.go +++ b/markup/goldmark/goldmark_integration_test.go @@ -912,10 +912,19 @@ hidden b := hugolib.Test(t, files, hugolib.TestOptWarn()) - b.AssertFileContent("public/p1/index.html", "! ") + b.AssertFileContent("public/p1/index.html", + "! ", + "! ", + "! ", + "! script", + ) b.AssertLogContains("! Raw HTML omitted") 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", + "! ", + "", + "", + ) b.AssertLogContains("! WARN") }