aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-07-28 10:53:47 +0200
committerBjørn Erik Pedersen <[email protected]>2023-07-28 15:14:23 +0200
commitb3cb6788b2634a89ae774895f345f082020b52d8 (patch)
tree08eadc21d9308510e332a4898d2c06516cb6e497 /hugolib/site_test.go
parent5542f02fbc4c9467a4338ee1ce2e741f480a0751 (diff)
downloadhugo-b3cb6788b2634a89ae774895f345f082020b52d8.tar.gz
hugo-b3cb6788b2634a89ae774895f345f082020b52d8.zip
Move all Kind constants to its own package
See #11256
Diffstat (limited to 'hugolib/site_test.go')
-rw-r--r--hugolib/site_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/hugolib/site_test.go b/hugolib/site_test.go
index effdac6df..f4d63943f 100644
--- a/hugolib/site_test.go
+++ b/hugolib/site_test.go
@@ -28,6 +28,7 @@ import (
qt "github.com/frankban/quicktest"
"github.com/gohugoio/hugo/deps"
+ "github.com/gohugoio/hugo/resources/kinds"
"github.com/gohugoio/hugo/resources/page"
)
@@ -717,7 +718,7 @@ func TestOrderedPages(t *testing.T) {
s := buildSingleSite(t, deps.DepsCfg{Fs: fs, Configs: configs}, BuildCfg{SkipRender: true})
- if s.getPage(page.KindSection, "sect").Pages()[1].Title() != "Three" || s.getPage(page.KindSection, "sect").Pages()[2].Title() != "Four" {
+ if s.getPage(kinds.KindSection, "sect").Pages()[1].Title() != "Three" || s.getPage(kinds.KindSection, "sect").Pages()[2].Title() != "Four" {
t.Error("Pages in unexpected order.")
}
@@ -1010,7 +1011,7 @@ func TestRefLinking(t *testing.T) {
t.Parallel()
site := setupLinkingMockSite(t)
- currentPage := site.getPage(page.KindPage, "level2/level3/start.md")
+ currentPage := site.getPage(kinds.KindPage, "level2/level3/start.md")
if currentPage == nil {
t.Fatalf("failed to find current page in site")
}