aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/page_test.go
diff options
context:
space:
mode:
authorMarshall Cottrell <[email protected]>2022-02-18 14:28:02 -0600
committerBjørn Erik Pedersen <[email protected]>2022-02-23 22:43:19 +0100
commit06bac57ab0b6d83b5855132c92c762153dbde8bb (patch)
tree3145f9f69bc9d866314d3775035c58ea5a670d04 /hugolib/page_test.go
parentec8b767fa64af8c5b3d6510358699d28359fa7b6 (diff)
downloadhugo-06bac57ab0b6d83b5855132c92c762153dbde8bb.tar.gz
hugo-06bac57ab0b6d83b5855132c92c762153dbde8bb.zip
Add support for CODEOWNERS
Fixes #9474
Diffstat (limited to 'hugolib/page_test.go')
-rw-r--r--hugolib/page_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go
index 1edef622b..c281ad36c 100644
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -1075,12 +1075,14 @@ func TestPageWithLastmodFromGitInfo(t *testing.T) {
// 2018-03-11 is the Git author date for testsite/content/first-post.md
c.Assert(enSite.RegularPages()[0].Lastmod().Format("2006-01-02"), qt.Equals, "2018-03-11")
+ c.Assert(enSite.RegularPages()[0].Codeowners()[0], qt.Equals, "@bep")
nnSite := h.Sites[1]
c.Assert(len(nnSite.RegularPages()), qt.Equals, 1)
// 2018-08-11 is the Git author date for testsite/content_nn/first-post.md
c.Assert(nnSite.RegularPages()[0].Lastmod().Format("2006-01-02"), qt.Equals, "2018-08-11")
+ c.Assert(enSite.RegularPages()[0].Codeowners()[0], qt.Equals, "@bep")
}
func TestPageWithFrontMatterConfig(t *testing.T) {