diff options
Diffstat (limited to 'hugolib/siteinfo_test.go')
-rw-r--r-- | hugolib/siteinfo_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/siteinfo_test.go b/hugolib/siteinfo_test.go index 8110dd932..362be2a46 100644 --- a/hugolib/siteinfo_test.go +++ b/hugolib/siteinfo_test.go @@ -27,7 +27,7 @@ func TestSiteInfoParams(t *testing.T) { defer viper.Reset() viper.Set("Params", map[string]interface{}{"MyGlobalParam": "FOOBAR_PARAM"}) - s := &Site{} + s := newSiteDefaultLang() s.initialize() if s.Info.Params["MyGlobalParam"] != "FOOBAR_PARAM" { @@ -53,7 +53,7 @@ func TestSiteInfoPermalinks(t *testing.T) { defer viper.Reset() viper.Set("Permalinks", map[string]interface{}{"section": "/:title"}) - s := &Site{} + s := newSiteDefaultLang() s.initialize() permalink := s.Info.Permalinks["section"] |