deps: Fix Goldmark regression with HTML comments

Fixes #9650
This commit is contained in:
Bjørn Erik Pedersen 2022-03-11 13:13:18 +01:00
parent 64b7b7a897
commit 1a796d723c
4 changed files with 43 additions and 1 deletions

View file

@ -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 {