mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 07:00:31 +03:00
hugolib: Test helper cleanup
This commit is contained in:
parent
10c13f5d79
commit
ed847ed93d
14 changed files with 214 additions and 208 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue