diff options
Diffstat (limited to 'resources/testhelpers_test.go')
-rw-r--r-- | resources/testhelpers_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/testhelpers_test.go b/resources/testhelpers_test.go index 32e4213ea..12dc8efe8 100644 --- a/resources/testhelpers_test.go +++ b/resources/testhelpers_test.go @@ -10,6 +10,7 @@ import ( "strings" "testing" + "github.com/gohugoio/hugo/config" "github.com/gohugoio/hugo/langs" "github.com/gohugoio/hugo/modules" @@ -22,7 +23,6 @@ import ( "github.com/gohugoio/hugo/resources/page" "github.com/gohugoio/hugo/resources/resource" "github.com/spf13/afero" - "github.com/spf13/viper" ) type specDescriptor struct { @@ -31,8 +31,8 @@ type specDescriptor struct { fs afero.Fs } -func createTestCfg() *viper.Viper { - cfg := viper.New() +func createTestCfg() config.Provider { + cfg := config.New() cfg.Set("resourceDir", "resources") cfg.Set("contentDir", "content") cfg.Set("dataDir", "data") |