From b3cb6788b2634a89ae774895f345f082020b52d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 28 Jul 2023 10:53:47 +0200 Subject: Move all Kind constants to its own package See #11256 --- hugolib/language_content_dir_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'hugolib/language_content_dir_test.go') diff --git a/hugolib/language_content_dir_test.go b/hugolib/language_content_dir_test.go index 05e207bbc..a22201475 100644 --- a/hugolib/language_content_dir_test.go +++ b/hugolib/language_content_dir_test.go @@ -20,10 +20,9 @@ import ( "path/filepath" "testing" + "github.com/gohugoio/hugo/resources/kinds" "github.com/spf13/cast" - "github.com/gohugoio/hugo/resources/page" - qt "github.com/frankban/quicktest" ) @@ -312,7 +311,7 @@ Content. b.AssertFileContent("public/sv/sect/mybundle/logo.png", "PNG Data") b.AssertFileContent("public/nn/sect/mybundle/logo.png", "PNG Data") - nnSect := nnSite.getPage(page.KindSection, "sect") + nnSect := nnSite.getPage(kinds.KindSection, "sect") c.Assert(nnSect, qt.Not(qt.IsNil)) c.Assert(len(nnSect.Pages()), qt.Equals, 12) nnHome := nnSite.Home() -- cgit v1.2.3