mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
hugolib: Add missing paginator test case
This commit is contained in:
parent
c33eb93548
commit
c8d4114171
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ func TestPager(t *testing.T) {
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
doTestPages(t, pag)
|
doTestPages(t, pag)
|
||||||
first := pag.Pagers()[0].First()
|
first := pag.Pagers()[0].First()
|
||||||
|
assert.Equal(t, "Pager 1", first.String())
|
||||||
assert.NotEmpty(t, first.Pages())
|
assert.NotEmpty(t, first.Pages())
|
||||||
assert.Empty(t, first.PageGroups())
|
assert.Empty(t, first.PageGroups())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue