From 9e571827055dedb46b78c5db3d17d6913f14870b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 10 Aug 2019 21:05:17 +0200 Subject: tests: Convert from testify to quicktest --- tpl/partials/init_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tpl/partials') diff --git a/tpl/partials/init_test.go b/tpl/partials/init_test.go index 0513f1572..6fd0b3e6d 100644 --- a/tpl/partials/init_test.go +++ b/tpl/partials/init_test.go @@ -16,13 +16,15 @@ package partials import ( "testing" + qt "github.com/frankban/quicktest" "github.com/gohugoio/hugo/common/loggers" "github.com/gohugoio/hugo/deps" + "github.com/gohugoio/hugo/htesting/hqt" "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 @@ -37,6 +39,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{}) } -- cgit v1.2.3