diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-06-01 09:30:16 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-06-01 10:49:21 +0200 |
commit | e3ae8f025d5919dd6675d5176b10bcf8884baa95 (patch) | |
tree | fdc41ba93919027052fccd77109b5c0bc4098b27 /hugolib/config_test.go | |
parent | 06faee5beb2244f08567ac8f50207152553d84a9 (diff) |
Make sure any default mounts show up in "hugo config"
Fixes #11040
Diffstat (limited to 'hugolib/config_test.go')
-rw-r--r-- | hugolib/config_test.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/hugolib/config_test.go b/hugolib/config_test.go index 814be667f..245180e12 100644 --- a/hugolib/config_test.go +++ b/hugolib/config_test.go @@ -1151,3 +1151,29 @@ weight = 1 }) } + +// Issue #11040 +func TestConfigModuleDefaultMountsInConfig(t *testing.T) { + t.Parallel() + + files := ` +-- hugo.toml -- +baseURL = "https://example.org" +contentDir = "mycontent" +-- layouts/index.html -- +Home. + + +` + b := NewIntegrationTestBuilder( + IntegrationTestConfig{ + T: t, + TxtarString: files, + }, + ).Build() + + modConf := b.H.Configs.Base.Module + + b.Assert(modConf.Mounts, qt.HasLen, 7) + +} |