mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
all: Refactor to non-global logger
Note that this looks like overkill for just the logger, and that is correct, but this will make sense once we start with the template handling etc. Updates #2701
This commit is contained in:
@@ -62,7 +62,7 @@ func TestShouldNotAddTrailingSlashToBaseURL(t *testing.T) {
|
||||
{"http://base.com", "http://base.com"}} {
|
||||
|
||||
viper.Set("baseURL", this.in)
|
||||
s := newSiteDefaultLang()
|
||||
s := NewSiteDefaultLang()
|
||||
s.initializeSiteInfo()
|
||||
|
||||
if s.Info.BaseURL != template.URL(this.expected) {
|
||||
@@ -79,6 +79,7 @@ func TestPageCount(t *testing.T) {
|
||||
viper.Set("uglyURLs", false)
|
||||
viper.Set("paginate", 10)
|
||||
s := &Site{
|
||||
deps: newDeps(DepsCfg{}),
|
||||
Source: &source.InMemorySource{ByteSource: urlFakeSource},
|
||||
Language: helpers.NewDefaultLanguage(),
|
||||
}
|
||||
|
Reference in New Issue
Block a user