aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/shortcode_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/shortcode_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/shortcode_test.go')
-rw-r--r--hugolib/shortcode_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go
index a95b38967..774794c56 100644
--- a/hugolib/shortcode_test.go
+++ b/hugolib/shortcode_test.go
@@ -22,9 +22,9 @@ import (
"testing"
"github.com/gohugoio/hugo/config"
+ "github.com/gohugoio/hugo/resources/kinds"
"github.com/gohugoio/hugo/parser/pageparser"
- "github.com/gohugoio/hugo/resources/page"
qt "github.com/frankban/quicktest"
)
@@ -186,7 +186,7 @@ CSV: {{< myShort >}}
b.Assert(len(h.Sites), qt.Equals, 1)
s := h.Sites[0]
- home := s.getPage(page.KindHome)
+ home := s.getPage(kinds.KindHome)
b.Assert(home, qt.Not(qt.IsNil))
b.Assert(len(home.OutputFormats()), qt.Equals, 3)