diff options
author | Marshall Cottrell <[email protected]> | 2022-02-18 14:28:02 -0600 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-02-23 22:43:19 +0100 |
commit | 06bac57ab0b6d83b5855132c92c762153dbde8bb (patch) | |
tree | 3145f9f69bc9d866314d3775035c58ea5a670d04 /hugolib/page_test.go | |
parent | ec8b767fa64af8c5b3d6510358699d28359fa7b6 (diff) | |
download | hugo-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.go | 2 |
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) { |