mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
hugolib: More test helper cleanup
This commit is contained in:
@@ -275,7 +275,7 @@ THE END.`, refShortcode)),
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
th.assertFileContent(test.doc, true, test.expected)
|
||||
th.assertFileContent(test.doc, test.expected)
|
||||
|
||||
}
|
||||
|
||||
@@ -429,7 +429,7 @@ func doTestSectionNaming(t *testing.T, canonify, uglify, pluralize bool) {
|
||||
test.expected = inflect.Pluralize(test.expected)
|
||||
}
|
||||
|
||||
th.assertFileContent(filepath.Join("public", test.doc), true, test.expected)
|
||||
th.assertFileContent(filepath.Join("public", test.doc), test.expected)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -542,7 +542,7 @@ func TestAbsURLify(t *testing.T) {
|
||||
expected = strings.Replace(expected, baseURL, "", -1)
|
||||
}
|
||||
|
||||
th.assertFileContent(test.file, true, expected)
|
||||
th.assertFileContent(test.file, expected)
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user