Skip to content

Commit

Permalink
hugolib: Adjust GitInfo author date test
Browse files Browse the repository at this point in the history
Now that we have a commit to assert against.

See gohugoio#4495
  • Loading branch information
bep committed Mar 11, 2018
1 parent 5f68451 commit dd62cda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hugolib/page_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,9 @@ func TestPageWithLastmodFromGitInfo(t *testing.T) {
s := buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{SkipRender: true})

assrt.Len(s.RegularPages, 1)
assrt.Equal("2018-02-28", s.RegularPages[0].Lastmod.Format("2006-01-02"))

// 2018-03-11 is the Git author date for testsite/content/first-post.md
assrt.Equal("2018-03-11", s.RegularPages[0].Lastmod.Format("2006-01-02"))
}

func TestPageWithFrontMatterConfig(t *testing.T) {
Expand Down

0 comments on commit dd62cda

Please sign in to comment.