mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
parent
628efd6e29
commit
cd07e6d57b
4 changed files with 48 additions and 6 deletions
|
@ -743,7 +743,7 @@ func (th testHelper) assertFileContent(filename string, matches ...string) {
|
|||
content := readDestination(th, th.Fs, filename)
|
||||
for _, match := range matches {
|
||||
match = th.replaceDefaultContentLanguageValue(match)
|
||||
th.Assert(strings.Contains(content, match), qt.Equals, true)
|
||||
th.Assert(strings.Contains(content, match), qt.Equals, true, qt.Commentf(content))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue