mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
hugolib: Test helper cleanup
This commit is contained in:
@@ -541,7 +541,7 @@ tags:
|
||||
writeSourcesToSource(t, "content", fs, sources...)
|
||||
|
||||
s := buildSingleSite(t, deps.DepsCfg{WithTemplate: addTemplates, Fs: fs, Cfg: cfg}, BuildCfg{})
|
||||
th := testHelper{s.Cfg}
|
||||
th := testHelper{s.Cfg, s.Fs, t}
|
||||
|
||||
for _, test := range tests {
|
||||
if strings.HasSuffix(test.contentPath, ".ad") && !helpers.HasAsciidoc() {
|
||||
@@ -555,7 +555,7 @@ tags:
|
||||
continue
|
||||
}
|
||||
|
||||
th.assertFileContent(t, fs, test.outFile, true, test.expected)
|
||||
th.assertFileContent(test.outFile, true, test.expected)
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user