Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-11 15:13:18 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-11 16:44:01 +0300
commit1a796d723c90e2747ea83440ad85ff0319770f2c (patch)
treeb983bb2faea7a282e163fdd8d5f1fe8be935a4a5 /hugolib
parent64b7b7a89753a39661219b2fcb92d7f185a03f63 (diff)
deps: Fix Goldmark regression with HTML comments
Fixes #9650
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/integrationtest_builder.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/hugolib/integrationtest_builder.go b/hugolib/integrationtest_builder.go
index b7b43624f..1bfa194bd 100644
--- a/hugolib/integrationtest_builder.go
+++ b/hugolib/integrationtest_builder.go
@@ -133,6 +133,14 @@ func (s *IntegrationTestBuilder) AssertFileContent(filename string, matches ...s
}
}
+func (s *IntegrationTestBuilder) AssertFileContentExact(filename string, matches ...string) {
+ s.Helper()
+ content := s.FileContent(filename)
+ for _, m := range matches {
+ s.Assert(content, qt.Contains, m, qt.Commentf(m))
+ }
+}
+
func (s *IntegrationTestBuilder) AssertDestinationExists(filename string, b bool) {
checker := qt.IsTrue
if !b {