tests: Convert from testify to quicktest

This commit is contained in:
Bjørn Erik Pedersen
2019-08-10 21:05:17 +02:00
parent 6027ee1108
commit 9e57182705
195 changed files with 3919 additions and 3693 deletions

View File

@@ -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 {