mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +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:
@@ -89,7 +89,7 @@ func TestDataDirUnknownFormat(t *testing.T) {
|
||||
sources := []source.ByteSource{
|
||||
{Name: filepath.FromSlash("test.roml"), Content: []byte("boo")},
|
||||
}
|
||||
s := newSiteDefaultLang()
|
||||
s := NewSiteDefaultLang()
|
||||
err := s.loadData([]source.Input{&source.InMemorySource{ByteSource: sources}})
|
||||
if err != nil {
|
||||
t.Fatalf("Should not return an error")
|
||||
@@ -97,7 +97,7 @@ func TestDataDirUnknownFormat(t *testing.T) {
|
||||
}
|
||||
|
||||
func doTestDataDir(t *testing.T, expected interface{}, sources []source.Input) {
|
||||
s := newSiteDefaultLang()
|
||||
s := NewSiteDefaultLang()
|
||||
err := s.loadData(sources)
|
||||
if err != nil {
|
||||
t.Fatalf("Error loading data: %s", err)
|
||||
|
Reference in New Issue
Block a user