mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 07:00:31 +03:00
Unexport the remaining vars in hugo command
This commit is contained in:
parent
a89b2f41d6
commit
74539dea87
6 changed files with 44 additions and 36 deletions
|
@ -44,11 +44,11 @@ func TestFixURL(t *testing.T) {
|
|||
|
||||
for i, test := range tests {
|
||||
viper.Reset()
|
||||
BaseURL = test.CLIBaseURL
|
||||
baseURL = test.CLIBaseURL
|
||||
viper.Set("BaseURL", test.CfgBaseURL)
|
||||
serverAppend = test.AppendPort
|
||||
serverPort = test.Port
|
||||
result, err := fixURL(BaseURL)
|
||||
result, err := fixURL(baseURL)
|
||||
if err != nil {
|
||||
t.Errorf("Test #%d %s: unexpected error %s", i, test.TestName, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue