diff options
Diffstat (limited to 'tpl/time/init_test.go')
-rw-r--r-- | tpl/time/init_test.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tpl/time/init_test.go b/tpl/time/init_test.go index ed1091b5b..672b03547 100644 --- a/tpl/time/init_test.go +++ b/tpl/time/init_test.go @@ -16,12 +16,15 @@ package time import ( "testing" + "github.com/gohugoio/hugo/htesting/hqt" + + qt "github.com/frankban/quicktest" "github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/tpl/internal" - "github.com/stretchr/testify/require" ) func TestInit(t *testing.T) { + c := qt.New(t) var found bool var ns *internal.TemplateFuncsNamespace @@ -33,6 +36,6 @@ func TestInit(t *testing.T) { } } - require.True(t, found) - require.IsType(t, &Namespace{}, ns.Context()) + c.Assert(found, qt.Equals, true) + c.Assert(ns.Context(), hqt.IsSameType, &Namespace{}) } |