summaryrefslogtreecommitdiffstats
path: root/hugolib
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-03-11 21:17:41 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-03-11 21:32:15 +0100
commitf12ad7d56afbf7655f891139dd2f724347fcff60 (patch)
treef9e3d4e10d23bb223963b697492f7c75c89687ba /hugolib
parentce6e4310febf5659392a41b543594382441f3681 (diff)
hugolib: Adjust GitInfo author date test
Now that we have a commit to assert against. See #4495
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/page_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go
index 875c5bdde..d862dc8e9 100644
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -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) {