summaryrefslogtreecommitdiffstats
path: root/tpl/os/os_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/os/os_test.go')
-rw-r--r--tpl/os/os_test.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/tpl/os/os_test.go b/tpl/os/os_test.go
index 3adb6f8c2..bbc0d018c 100644
--- a/tpl/os/os_test.go
+++ b/tpl/os/os_test.go
@@ -17,11 +17,12 @@ import (
"path/filepath"
"testing"
+ "github.com/gohugoio/hugo/config"
+
qt "github.com/frankban/quicktest"
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/hugofs"
"github.com/spf13/afero"
- "github.com/spf13/viper"
)
func TestReadFile(t *testing.T) {
@@ -30,7 +31,7 @@ func TestReadFile(t *testing.T) {
workingDir := "/home/hugo"
- v := viper.New()
+ v := config.New()
v.Set("workingDir", workingDir)
// f := newTestFuncsterWithViper(v)
@@ -68,7 +69,7 @@ func TestFileExists(t *testing.T) {
workingDir := "/home/hugo"
- v := viper.New()
+ v := config.New()
v.Set("workingDir", workingDir)
ns := New(&deps.Deps{Fs: hugofs.NewMem(v)})
@@ -103,7 +104,7 @@ func TestStat(t *testing.T) {
c := qt.New(t)
workingDir := "/home/hugo"
- v := viper.New()
+ v := config.New()
v.Set("workingDir", workingDir)
ns := New(&deps.Deps{Fs: hugofs.NewMem(v)})