mirror of
https://github.com/gohugoio/hugo.git
synced 2025-06-29 04:09:51 +00:00
tests: Convert from testify to quicktest
This commit is contained in:
parent
6027ee1108
commit
9e57182705
195 changed files with 3919 additions and 3693 deletions
|
@ -18,7 +18,7 @@ import (
|
|||
|
||||
"fmt"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
qt "github.com/frankban/quicktest"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -77,12 +77,12 @@ Menu Main: {{ partial "menu.html" (dict "page" . "menu" "main") }}`,
|
|||
|
||||
s := h.Sites[0]
|
||||
|
||||
require.Len(t, s.Menus(), 2)
|
||||
b.Assert(len(s.Menus()), qt.Equals, 2)
|
||||
|
||||
p1 := s.RegularPages()[0].Menus()
|
||||
|
||||
// There is only one menu in the page, but it is "member of" 2
|
||||
require.Len(t, p1, 1)
|
||||
b.Assert(len(p1), qt.Equals, 1)
|
||||
|
||||
b.AssertFileContent("public/sect1/p1/index.html", "Single",
|
||||
"Menu Sect: "+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue