diff options
Diffstat (limited to 'tpl/template_test.go')
-rw-r--r-- | tpl/template_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tpl/template_test.go b/tpl/template_test.go index 73e9640be..9f89db5ae 100644 --- a/tpl/template_test.go +++ b/tpl/template_test.go @@ -16,16 +16,16 @@ package tpl import ( "testing" - "github.com/stretchr/testify/require" + qt "github.com/frankban/quicktest" ) func TestExtractBaseof(t *testing.T) { - assert := require.New(t) + c := qt.New(t) replaced := extractBaseOf(`failed: template: _default/baseof.html:37:11: executing "_default/baseof.html" at <.Parents>: can't evaluate field Parents in type *hugolib.PageOutput`) - assert.Equal("_default/baseof.html", replaced) - assert.Equal("", extractBaseOf("not baseof for you")) - assert.Equal("blog/baseof.html", extractBaseOf("template: blog/baseof.html:23:11:")) - assert.Equal("blog/baseof.ace", extractBaseOf("template: blog/baseof.ace:23:11:")) + c.Assert(replaced, qt.Equals, "_default/baseof.html") + c.Assert(extractBaseOf("not baseof for you"), qt.Equals, "") + c.Assert(extractBaseOf("template: blog/baseof.html:23:11:"), qt.Equals, "blog/baseof.html") + c.Assert(extractBaseOf("template: blog/baseof.ace:23:11:"), qt.Equals, "blog/baseof.ace") } |