mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
@@ -66,6 +66,8 @@ func newTestResourceSpec(desc specDescriptor) *Spec {
|
||||
afs = afero.NewMemMapFs()
|
||||
}
|
||||
|
||||
afs = hugofs.NewBaseFileDecorator(afs)
|
||||
|
||||
c := desc.c
|
||||
|
||||
cfg := createTestCfg()
|
||||
@@ -118,7 +120,7 @@ func newTestResourceOsFs(c *qt.C) (*Spec, string) {
|
||||
|
||||
cfg.Set("workingDir", workDir)
|
||||
|
||||
fs := hugofs.NewFrom(hugofs.Os, cfg)
|
||||
fs := hugofs.NewFrom(hugofs.NewBaseFileDecorator(hugofs.Os), cfg)
|
||||
fs.Destination = &afero.MemMapFs{}
|
||||
|
||||
s, err := helpers.NewPathSpec(fs, cfg, nil)
|
||||
|
Reference in New Issue
Block a user