summaryrefslogtreecommitdiffstats
path: root/tpl/strings/init_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/strings/init_test.go')
-rw-r--r--tpl/strings/init_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/tpl/strings/init_test.go b/tpl/strings/init_test.go
index b356896cf..dd15418c8 100644
--- a/tpl/strings/init_test.go
+++ b/tpl/strings/init_test.go
@@ -16,12 +16,13 @@ package strings
import (
"testing"
+ "github.com/gohugoio/hugo/config"
+
"github.com/gohugoio/hugo/htesting/hqt"
qt "github.com/frankban/quicktest"
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/tpl/internal"
- "github.com/spf13/viper"
)
func TestInit(t *testing.T) {
@@ -30,7 +31,7 @@ func TestInit(t *testing.T) {
var ns *internal.TemplateFuncsNamespace
for _, nsf := range internal.TemplateFuncsNamespaceRegistry {
- ns = nsf(&deps.Deps{Cfg: viper.New()})
+ ns = nsf(&deps.Deps{Cfg: config.New()})
if ns.Name == name {
found = true
break