mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
commands: Remove accidental and breaking space in baseURL flag
And added key-trimming to prevent future mishaps. See #4607
This commit is contained in:
@@ -101,6 +101,7 @@ func TestCommandsPersistentFlags(t *testing.T) {
|
||||
assert.Equal("mylayouts", cfg.GetString("layoutDir"))
|
||||
assert.Equal("mytheme", cfg.GetString("theme"))
|
||||
assert.Equal("mythemes", cfg.GetString("themesDir"))
|
||||
assert.Equal("https://example.com/b/", cfg.GetString("baseURL"))
|
||||
|
||||
assert.Equal([]string{"page", "home"}, cfg.Get("disableKinds"))
|
||||
|
||||
|
Reference in New Issue
Block a user