mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
@@ -28,9 +28,9 @@ func TestLoadGlobalConfig(t *testing.T) {
|
||||
PaginatePath = "side"
|
||||
`
|
||||
|
||||
writeSource(t, "config.toml", configContent)
|
||||
writeSource(t, "hugo.toml", configContent)
|
||||
|
||||
require.NoError(t, LoadGlobalConfig("", "config.toml"))
|
||||
require.NoError(t, LoadGlobalConfig("", "hugo.toml"))
|
||||
assert.Equal(t, "side", viper.GetString("PaginatePath"))
|
||||
// default
|
||||
assert.Equal(t, "layouts", viper.GetString("LayoutDir"))
|
||||
|
Reference in New Issue
Block a user