mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +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:
@@ -33,7 +33,7 @@ func TestAlias(t *testing.T) {
|
||||
writeSource(t, filepath.Join("content", "page.md"), pageWithAlias)
|
||||
writeSource(t, filepath.Join("layouts", "_default", "single.html"), basicTemplate)
|
||||
|
||||
if err := buildAndRenderSite(newSiteDefaultLang()); err != nil {
|
||||
if err := buildAndRenderSite(NewSiteDefaultLang()); err != nil {
|
||||
t.Fatalf("Failed to build site: %s", err)
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ func TestAliasTemplate(t *testing.T) {
|
||||
writeSource(t, filepath.Join("layouts", "_default", "single.html"), basicTemplate)
|
||||
writeSource(t, filepath.Join("layouts", "alias.html"), aliasTemplate)
|
||||
|
||||
if err := buildAndRenderSite(newSiteDefaultLang()); err != nil {
|
||||
if err := buildAndRenderSite(NewSiteDefaultLang()); err != nil {
|
||||
t.Fatalf("Failed to build site: %s", err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user