mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
tests: Convert from testify to quicktest
This commit is contained in:
@@ -16,16 +16,16 @@ package hugolib
|
||||
import (
|
||||
"testing"
|
||||
|
||||
qt "github.com/frankban/quicktest"
|
||||
"github.com/gohugoio/hugo/resources/page"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestUnwrapPage(t *testing.T) {
|
||||
assert := require.New(t)
|
||||
c := qt.New(t)
|
||||
|
||||
p := &pageState{}
|
||||
|
||||
assert.Equal(p, mustUnwrap(newPageForShortcode(p)))
|
||||
c.Assert(mustUnwrap(newPageForShortcode(p)), qt.Equals, p)
|
||||
}
|
||||
|
||||
func mustUnwrap(v interface{}) page.Page {
|
||||
|
Reference in New Issue
Block a user