summaryrefslogtreecommitdiffstats
path: root/hugolib/content_factory_test.go
diff options
context:
space:
mode:
authorsatotake <doublequotation@gmail.com>2022-09-01 00:23:31 +0900
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-09-08 15:35:11 +0200
commit7d40da876c62a166bdd273209b7cd6bead9266c1 (patch)
treef4a0aa6c7f45cbfc4181bcff8586db98a580be53 /hugolib/content_factory_test.go
parent02c89a446d1a76491bfb4b9a756d892a83584d17 (diff)
Add `--force` to `hugo new`
Closes #9243
Diffstat (limited to 'hugolib/content_factory_test.go')
-rw-r--r--hugolib/content_factory_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/content_factory_test.go b/hugolib/content_factory_test.go
index 23dcd660a..2c4b843a9 100644
--- a/hugolib/content_factory_test.go
+++ b/hugolib/content_factory_test.go
@@ -43,7 +43,7 @@ Hello World.
`)
b.CreateSites()
cf := NewContentFactory(b.H)
- abs, err := cf.CreateContentPlaceHolder(filepath.FromSlash("mcontent/en/blog/mypage.md"))
+ abs, err := cf.CreateContentPlaceHolder(filepath.FromSlash("mcontent/en/blog/mypage.md"), false)
b.Assert(err, qt.IsNil)
b.Assert(abs, qt.Equals, filepath.FromSlash("/my/work/mcontent/en/blog/mypage.md"))
b.Build(BuildCfg{SkipRender: true})
@@ -69,7 +69,7 @@ theme = 'ipsum'
b.WithSourceFile(filepath.Join(themeDir, "content/posts/foo.txt"), `Hello.`)
b.CreateSites()
cf := NewContentFactory(b.H)
- abs, err := cf.CreateContentPlaceHolder(filepath.FromSlash("posts/test.md"))
+ abs, err := cf.CreateContentPlaceHolder(filepath.FromSlash("posts/test.md"), false)
b.Assert(err, qt.IsNil)
b.Assert(abs, qt.Equals, filepath.FromSlash("content/posts/test.md"))