diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/filesystem_test.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/filesystem_test.go b/source/filesystem_test.go index ee86c1487..2c1eeb171 100644 --- a/source/filesystem_test.go +++ b/source/filesystem_test.go @@ -75,12 +75,18 @@ func newTestConfig() *viper.Viper { v.Set("i18nDir", "i18n") v.Set("layoutDir", "layouts") v.Set("archetypeDir", "archetypes") + v.Set("resourceDir", "resources") + v.Set("publishDir", "public") + v.Set("assetDir", "assets") return v } func newTestSourceSpec() *SourceSpec { v := newTestConfig() fs := hugofs.NewMem(v) - ps, _ := helpers.NewPathSpec(fs, v) + ps, err := helpers.NewPathSpec(fs, v) + if err != nil { + panic(err) + } return NewSourceSpec(ps, fs.Source) } |