mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Rework the Destination filesystem to make --renderStaticToDisk work
See #9626
This commit is contained in:
@@ -336,7 +336,7 @@ func doTestShouldAlwaysHaveUglyURLs(t *testing.T, uglyURLs bool) {
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
content := readDestination(t, fs, test.doc)
|
||||
content := readWorkingDir(t, fs, test.doc)
|
||||
|
||||
if content != test.expected {
|
||||
t.Errorf("%s content expected:\n%q\ngot:\n%q", test.doc, test.expected, content)
|
||||
@@ -362,7 +362,7 @@ func TestMainSections(t *testing.T) {
|
||||
c := qt.New(t)
|
||||
for _, paramSet := range []bool{false, true} {
|
||||
c.Run(fmt.Sprintf("param-%t", paramSet), func(c *qt.C) {
|
||||
v := config.New()
|
||||
v := config.NewWithTestDefaults()
|
||||
if paramSet {
|
||||
v.Set("params", map[string]any{
|
||||
"mainSections": []string{"a1", "a2"},
|
||||
|
Reference in New Issue
Block a user