From 06bac57ab0b6d83b5855132c92c762153dbde8bb Mon Sep 17 00:00:00 2001 From: Marshall Cottrell Date: Fri, 18 Feb 2022 14:28:02 -0600 Subject: Add support for CODEOWNERS Fixes #9474 --- hugolib/page_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hugolib/page_test.go') 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) { -- cgit v1.2.3