diff options
author | Joe Mooring <joe.mooring@veriphor.com> | 2024-09-28 13:15:53 -0700 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-09-29 10:49:26 +0200 |
commit | d1ba52f3c3bdc31c2067f986fdb57088d875c01e (patch) | |
tree | 83bdf861007b0fe4654863a121fb8472d0dc4de3 /hugolib/paginator_test.go | |
parent | d0dca656250d0a04f3a5051ec067022df4b37738 (diff) | |
download | hugo-d1ba52f3c3bdc31c2067f986fdb57088d875c01e.tar.gz hugo-d1ba52f3c3bdc31c2067f986fdb57088d875c01e.zip |
tests: Address deprecation warnings and errors
Diffstat (limited to 'hugolib/paginator_test.go')
-rw-r--r-- | hugolib/paginator_test.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/hugolib/paginator_test.go b/hugolib/paginator_test.go index fb592bed1..dcee6e38e 100644 --- a/hugolib/paginator_test.go +++ b/hugolib/paginator_test.go @@ -24,8 +24,10 @@ import ( func TestPaginator(t *testing.T) { configFile := ` baseURL = "https://example.com/foo/" -paginate = 3 -paginatepath = "thepage" + +[pagination] +pagerSize = 3 +path = "thepage" [languages.en] weight = 1 @@ -161,10 +163,11 @@ Len Pag: {{ len $pag.Pages }} func TestPaginatorNodePagesOnly(t *testing.T) { files := ` -- hugo.toml -- -paginate = 1 +[pagination] +pagerSize = 1 -- content/p1.md -- -- layouts/_default/single.html -- -Paginator: {{ .Paginator }} +Paginator: {{ .Paginator }} ` b, err := TestE(t, files) b.Assert(err, qt.IsNotNil) |