Skip to content

Commit f12ad7d

Browse files
committed
hugolib: Adjust GitInfo author date test
Now that we have a commit to assert against. See gohugoio#4495
1 parent ce6e431 commit f12ad7d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

hugolib/page_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,9 @@ func TestPageWithLastmodFromGitInfo(t *testing.T) {
933933
s := buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{SkipRender: true})
934934

935935
assrt.Len(s.RegularPages, 1)
936-
assrt.Equal("2018-02-28", s.RegularPages[0].Lastmod.Format("2006-01-02"))
936+
937+
// 2018-03-11 is the Git author date for testsite/content/first-post.md
938+
assrt.Equal("2018-03-11", s.RegularPages[0].Lastmod.Format("2006-01-02"))
937939
}
938940

939941
func TestPageWithFrontMatterConfig(t *testing.T) {

0 commit comments

Comments
 (0)