diff options
Diffstat (limited to 'tpl/transform/remarshal_test.go')
-rw-r--r-- | tpl/transform/remarshal_test.go | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tpl/transform/remarshal_test.go b/tpl/transform/remarshal_test.go index 5e3ed8b34..07c51c3b0 100644 --- a/tpl/transform/remarshal_test.go +++ b/tpl/transform/remarshal_test.go @@ -25,7 +25,9 @@ import ( func TestRemarshal(t *testing.T) { t.Parallel() - ns := New(newDeps(viper.New())) + v := viper.New() + v.Set("contentDir", "content") + ns := New(newDeps(v)) assert := require.New(t) tomlExample := `title = "Test Metadata" @@ -111,7 +113,10 @@ title: Test Metadata func TestRemarshalComments(t *testing.T) { t.Parallel() - ns := New(newDeps(viper.New())) + v := viper.New() + v.Set("contentDir", "content") + ns := New(newDeps(v)) + assert := require.New(t) input := ` @@ -153,7 +158,9 @@ Hugo = "Rules" func TestTestRemarshalError(t *testing.T) { t.Parallel() - ns := New(newDeps(viper.New())) + v := viper.New() + v.Set("contentDir", "content") + ns := New(newDeps(v)) assert := require.New(t) _, err := ns.Remarshal("asdf", "asdf") |