mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
hugolib: Test helper cleanup
This commit is contained in:
parent
10c13f5d79
commit
ed847ed93d
14 changed files with 214 additions and 208 deletions
|
@ -30,7 +30,7 @@ func TestRobotsTXTOutput(t *testing.T) {
|
|||
t.Parallel()
|
||||
var (
|
||||
cfg, fs = newTestCfg()
|
||||
th = testHelper{cfg}
|
||||
th = testHelper{cfg, fs, t}
|
||||
)
|
||||
|
||||
cfg.Set("baseURL", "http://auth/bub/")
|
||||
|
@ -41,6 +41,6 @@ func TestRobotsTXTOutput(t *testing.T) {
|
|||
|
||||
buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{})
|
||||
|
||||
th.assertFileContent(t, fs, "public/robots.txt", true, "User-agent: Googlebot")
|
||||
th.assertFileContent("public/robots.txt", true, "User-agent: Googlebot")
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue