mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
hugolib: Test helper cleanup
This commit is contained in:
@@ -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")
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user