diff options
Diffstat (limited to 'tpl/tplimpl/template_funcs_test.go')
-rw-r--r-- | tpl/tplimpl/template_funcs_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tpl/tplimpl/template_funcs_test.go b/tpl/tplimpl/template_funcs_test.go index 32f1a1a71..b8390c5b9 100644 --- a/tpl/tplimpl/template_funcs_test.go +++ b/tpl/tplimpl/template_funcs_test.go @@ -80,12 +80,14 @@ func TestTemplateFuncsExamples(t *testing.T) { var data struct { Title string Section string + Hugo map[string]interface{} Params map[string]interface{} } data.Title = "**BatMan**" data.Section = "blog" data.Params = map[string]interface{}{"langCode": "en"} + data.Hugo = map[string]interface{}{"Version": helpers.MustParseHugoVersion("0.36.1").Version()} for _, nsf := range internal.TemplateFuncsNamespaceRegistry { ns := nsf(d) |